Skip to content

Commit

Permalink
fix error match
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed Sep 16, 2024
1 parent c498c9b commit 784cb5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/chains/address_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func TestAddress(t *testing.T) {
func TestDecodeBtcAddress(t *testing.T) {
t.Run("invalid string", func(t *testing.T) {
_, err := DecodeBtcAddress("�U�ڷ���i߭����꿚�l", BitcoinTestnet.ChainId)
require.ErrorContains(t, err, "runtime error: index out of range")
require.ErrorContains(t, err, "decode address failed: decoded address is of unknown format")
})
t.Run("invalid chain", func(t *testing.T) {
_, err := DecodeBtcAddress("14CEjTd5ci3228J45GdnGeUKLSSeCWUQxK", 0)
Expand Down

0 comments on commit 784cb5c

Please sign in to comment.