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

Commit 2889978

Browse files
committed
return proper error on callBundle incorrect gasPrice
1 parent 001c352 commit 2889978

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/ethapi/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2397,7 +2397,7 @@ func (s *BundleAPI) CallBundle(ctx context.Context, args CallBundleArgs) (map[st
23972397
}
23982398
uint256GasPrice, overflow := uint256.FromBig(gasPrice)
23992399
if overflow {
2400-
return nil, fmt.Errorf("err: %w; txhash %s", err, tx.Hash())
2400+
return nil, fmt.Errorf("incorrect gasPrice txhash %s", tx.Hash())
24012401
}
24022402
gasFeesTx := new(uint256.Int).Mul(uint256.NewInt(receipt.GasUsed), uint256GasPrice)
24032403
gasFees.Add(gasFees, gasFeesTx)

0 commit comments

Comments
 (0)