Skip to content

Commit

Permalink
Fix for estimate gas failing when gasPrice included. (#1610)
Browse files Browse the repository at this point in the history
* Minimal proxy deployment.

* Fix for geth encoding doing wrong stuff.

* Revert "Minimal proxy deployment."

This reverts commit 3d15da0.

---------

Co-authored-by: StefanIliev545 <[email protected]>
  • Loading branch information
StefanIliev545 and StefanIliev545 authored Oct 18, 2023
1 parent c4140ad commit a25b5b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/common/gethencoding/geth_encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,11 @@ func ExtractEthCall(param interface{}) (*gethapi.TransactionArgs, error) {
gas = (*hexutil.Uint64)(&gasVal)

case callFieldGasPrice:
valueVal, err := hexutil.DecodeBig(valString)
gasPriceVal, err := hexutil.DecodeBig(valString)
if err != nil {
return nil, fmt.Errorf("could not decode value in CallMsg - %w", err)
}
value = (*hexutil.Big)(valueVal)
gasPrice = (*hexutil.Big)(gasPriceVal)

case callFieldMaxFeePerGas:
maxFeePerGasVal, err := hexutil.DecodeBig(valString)
Expand Down

0 comments on commit a25b5b4

Please sign in to comment.