Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit 6c5b1b5

Browse files
committed
return proper error on callBundle incorrect gasPrice
1 parent 677a32d commit 6c5b1b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/ethapi/api.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2385,7 +2385,7 @@ func (s *BundleAPI) CallBundle(ctx context.Context, args CallBundleArgs) (map[st
23852385
}
23862386
uint256GasPrice, ok := uint256.FromBig(gasPrice)
23872387
if !ok {
2388-
return nil, fmt.Errorf("err: %w; txhash %s", err, tx.Hash())
2388+
return nil, fmt.Errorf("incorrect gasPrice txhash %s", tx.Hash())
23892389
}
23902390
gasFeesTx := new(uint256.Int).Mul(uint256.NewInt(receipt.GasUsed), uint256GasPrice)
23912391
gasFees.Add(gasFees, gasFeesTx)

0 commit comments

Comments
 (0)