Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
calvwang9 committed Dec 24, 2024
1 parent eb844c0 commit d550d39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/services/keystore/keys/tronkey/account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func TestHexToAddress(t *testing.T) {
for _, hexStr := range validHexAddresses {
t.Run(hexStr, func(t *testing.T) {
addr, err := HexToAddress(hexStr)
require.Nil(t, err)
require.NoError(t, err)
require.Equal(t, "0x"+hexStr, addr.Hex())
})
}
Expand All @@ -131,7 +131,7 @@ func TestHexToAddress(t *testing.T) {
for _, hexStr := range invalidHexAddresses {
t.Run(hexStr, func(t *testing.T) {
_, err := HexToAddress(hexStr)
require.NotNil(t, err)
require.Error(t, err)
})
}
})
Expand Down

0 comments on commit d550d39

Please sign in to comment.