Skip to content

Commit 3ca82fc

Browse files
committed
fix Function call
1 parent aae5498 commit 3ca82fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gnovm/stdlibs/std/crypto.gno

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ func (a Address) String() string {
1010

1111
// IsValid checks if the address is valid bech32 encoded string
1212
func (a Address) IsValid() bool {
13-
_, _, ok := bech32.DecodeBech32(a)
13+
_, _, ok := DecodeBech32(a)
1414
return ok
1515
}
1616

@@ -19,7 +19,7 @@ const RawAddressSize = 20
1919
type RawAddress [RawAddressSize]byte
2020

2121
func EncodeBech32(prefix string, bz [20]byte) Address {
22-
b32, err := bech32.ConvertAndEncode(prefix, bytes[:])
22+
b32, err := convertAndEncode(prefix, bytes[:])
2323
if err != nil {
2424
panic(err) // should not happen
2525
}

0 commit comments

Comments
 (0)