ante: ignore no signature error for evm transactions (#143)

fixes #118

don't sign unit test tx

since that's the same case as real tx

comment EthValidateBasicDecorator
This commit is contained in:
yihuang
2021-06-21 06:44:37 -04:00
committed by GitHub
parent d8926636e7
commit 91ad6387bf
5 changed files with 100 additions and 49 deletions
+4
View File
@@ -550,6 +550,10 @@ func (e *PublicEthAPI) doCall(
// Create new call message
msg := evmtypes.NewMsgEthereumTx(e.chainIDEpoch, seq, args.To, value, gas, gasPrice, data, accessList)
msg.From = args.From.String()
signer := ethtypes.LatestSignerForChainID(e.chainIDEpoch)
if err := msg.Sign(signer, e.clientCtx.Keyring); err != nil {
return nil, err
}
if err := msg.ValidateBasic(); err != nil {
return nil, err