Skip to content

Commit

Permalink
Update x/evm/evmtest/erc20.go
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
k-yang and coderabbitai[bot] authored Jan 16, 2025
1 parent 8445c92 commit c66de45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/evm/evmtest/erc20.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ func AssertERC20BalanceEqualWithDescription(
) {
actualBalance, err := deps.EvmKeeper.ERC20().BalanceOf(erc20, account, deps.Ctx, evmObj)
var errSuffix string
if description == "" {
errSuffix = description
} else {
if description != "" {
errSuffix = ": " + description
} else {
errSuffix = ""
}
assert.NoError(t, err, errSuffix)
assert.Equalf(t, expectedBalance.String(), actualBalance.String(),
Expand Down

0 comments on commit c66de45

Please sign in to comment.