fix value transfer (#341)

* debugging balance and gas

* add prints

* remove gas consumption in ante handler

* cleanup

* fix test
This commit is contained in:
noot
2020-06-24 05:38:53 -04:00
committed by GitHub
parent 28e28f2a7b
commit 8ba6400e88
4 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -293,7 +293,7 @@ func (suite *EvmTestSuite) TestQueryTxLogs() {
func (suite *EvmTestSuite) TestSendTransaction() {
gasLimit := uint64(21000)
gasPrice := big.NewInt(1)
gasPrice := big.NewInt(0x55ae82600)
priv, err := crypto.GenerateKey()
suite.Require().NoError(err, "failed to create key")
+2 -2
View File
@@ -794,9 +794,9 @@ func (csdb *CommitStateDB) getStateObject(addr ethcmn.Address) (stateObject *sta
}
// otherwise, attempt to fetch the account from the account mapper
acc := csdb.accountKeeper.GetAccount(csdb.ctx, addr.Bytes())
acc := csdb.accountKeeper.GetAccount(csdb.ctx, sdk.AccAddress(addr.Bytes()))
if acc == nil {
csdb.setError(fmt.Errorf("no account found for address: %X", addr.Bytes()))
csdb.setError(fmt.Errorf("no account found for address: %s", addr.String()))
return nil
}