We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aae5498 commit 3ca82fcCopy full SHA for 3ca82fc
gnovm/stdlibs/std/crypto.gno
@@ -10,7 +10,7 @@ func (a Address) String() string {
10
11
// IsValid checks if the address is valid bech32 encoded string
12
func (a Address) IsValid() bool {
13
- _, _, ok := bech32.DecodeBech32(a)
+ _, _, ok := DecodeBech32(a)
14
return ok
15
}
16
@@ -19,7 +19,7 @@ const RawAddressSize = 20
19
type RawAddress [RawAddressSize]byte
20
21
func EncodeBech32(prefix string, bz [20]byte) Address {
22
- b32, err := bech32.ConvertAndEncode(prefix, bytes[:])
+ b32, err := convertAndEncode(prefix, bytes[:])
23
if err != nil {
24
panic(err) // should not happen
25
0 commit comments