Skip to content

Commit

Permalink
fix Function call
Browse files Browse the repository at this point in the history
  • Loading branch information
Villaquiranm committed Dec 19, 2024
1 parent aae5498 commit 3ca82fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gnovm/stdlibs/std/crypto.gno
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ func (a Address) String() string {

// IsValid checks if the address is valid bech32 encoded string
func (a Address) IsValid() bool {
_, _, ok := bech32.DecodeBech32(a)
_, _, ok := DecodeBech32(a)
return ok
}

Expand All @@ -19,7 +19,7 @@ const RawAddressSize = 20
type RawAddress [RawAddressSize]byte

func EncodeBech32(prefix string, bz [20]byte) Address {
b32, err := bech32.ConvertAndEncode(prefix, bytes[:])
b32, err := convertAndEncode(prefix, bytes[:])
if err != nil {
panic(err) // should not happen
}
Expand Down

0 comments on commit 3ca82fc

Please sign in to comment.