ante: check that sender is a EOA (#125)

* ante: check that sender is a EOA

* fix: GetCodeSize handles nil case and comments

* docs: add TODO comment

* fix: use EmptyCodeHash check

* lint: evmtypes instead of types

* lint: fix suite error

* test: set code to act not as EOA

* undo comment on GetCodeSize

* keeper: fix input checks

* Apply suggestions from code review

Co-authored-by: Akash Khosla <me@akashkhosla.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
This commit is contained in:
hello-bwhour
2021-06-15 13:39:41 -04:00
committed by GitHub
co-authored by Akash Khosla Federico Kunze
parent d3c5df9dda
commit d7da045fc4
4 changed files with 35 additions and 5 deletions
+1
View File
@@ -86,6 +86,7 @@ func (suite *AnteTestSuite) CreateTestTx(
suite.Require().NoError(err)
err = builder.SetMsgs(msg)
suite.Require().NoError(err)
fees := sdk.NewCoins(sdk.NewCoin(evmtypes.DefaultEVMDenom, sdk.NewIntFromBigInt(msg.Fee())))
builder.SetFeeAmount(fees)
builder.SetGasLimit(msg.GetGas())