fix: remove duplicated gasPrice derivation (#836)
Noticed in an audit, this change removes a duplicated gasPrice conversion that was first made in:423944bf79/x/evm/types/tx_args.go (L76-L78)
as well as in423944bf79/x/evm/types/tx_args.go (L88-L90)
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
This commit is contained in:
parent
68f1d1c8e6
commit
5d237a5ee4
@ -85,10 +85,6 @@ func (args *TransactionArgs) ToTransaction() *MsgEthereumTx {
|
|||||||
maxPriorityFeePerGas = sdk.NewIntFromBigInt(args.MaxPriorityFeePerGas.ToInt())
|
maxPriorityFeePerGas = sdk.NewIntFromBigInt(args.MaxPriorityFeePerGas.ToInt())
|
||||||
}
|
}
|
||||||
|
|
||||||
if args.GasPrice != nil {
|
|
||||||
gasPrice = sdk.NewIntFromBigInt(args.GasPrice.ToInt())
|
|
||||||
}
|
|
||||||
|
|
||||||
if args.Value != nil {
|
if args.Value != nil {
|
||||||
value = sdk.NewIntFromBigInt(args.Value.ToInt())
|
value = sdk.NewIntFromBigInt(args.Value.ToInt())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user