Skip to content

Commit

Permalink
fix ut error
Browse files Browse the repository at this point in the history
  • Loading branch information
KamiD committed Jan 26, 2021
1 parent cf3954f commit fa2b1f5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions x/evm/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ import (
"crypto/ecdsa"
"encoding/json"
"fmt"
"github.com/cosmos/cosmos-sdk/x/supply"
"math/big"
"strings"
"testing"
"time"

"github.com/cosmos/cosmos-sdk/x/supply"

"github.com/status-im/keycard-go/hexutils"

"github.com/stretchr/testify/suite"
Expand Down Expand Up @@ -641,7 +642,7 @@ func (suite *EvmTestSuite) TestRefundGas() {
balanceAfterHandler := big.NewInt(1).Sub(userBalance, tc.consumed)
balanceAfterRefund := suite.app.EvmKeeper.GetBalance(suite.ctx, sender)

suite.Require().Equal(big.NewInt(1).Mul(gasRefund, big.NewInt(1000000000000000000)), big.NewInt(1).Sub(balanceAfterRefund, balanceAfterHandler))
suite.Require().Equal(big.NewInt(1).Mul(gasRefund, big.NewInt(1)), big.NewInt(1).Sub(balanceAfterRefund, balanceAfterHandler))
})
}
}
}

0 comments on commit fa2b1f5

Please sign in to comment.