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

Commit

Permalink
return proper error on callBundle incorrect gasPrice
Browse files Browse the repository at this point in the history
  • Loading branch information
TymKh committed Jan 30, 2024
1 parent 677a32d commit 6c5b1b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -2385,7 +2385,7 @@ func (s *BundleAPI) CallBundle(ctx context.Context, args CallBundleArgs) (map[st
}
uint256GasPrice, ok := uint256.FromBig(gasPrice)
if !ok {
return nil, fmt.Errorf("err: %w; txhash %s", err, tx.Hash())
return nil, fmt.Errorf("incorrect gasPrice txhash %s", tx.Hash())
}
gasFeesTx := new(uint256.Int).Mul(uint256.NewInt(receipt.GasUsed), uint256GasPrice)
gasFees.Add(gasFees, gasFeesTx)
Expand Down

0 comments on commit 6c5b1b5

Please sign in to comment.