Skip to content

I can not generate address, please help me #801

@godloveBiya

Description

@godloveBiya
gen := flow.NewAddressGenerator(flow.Mainnet)
address := gen.Address()
fmt.Println(address.Hex())
fmt.Println(address.String())

When I want to generate flow address, it panic :
windows:

# github.com/onflow/atree
C:\Users\Administrator\go\pkg\mod\github.com\onflow\[email protected]\typeinfo.go:33:15: undefined: cbor.StreamEncoder
C:\Users\Administrator\go\pkg\mod\github.com\onflow\[email protected]\typeinfo.go:39:16: undefined: cbor.StreamDecoder
C:\Users\Administrator\go\pkg\mod\github.com\onflow\[email protected]\encode.go:31:26: undefined: cbor.StreamEncoder
C:\Users\Administrator\go\pkg\mod\github.com\onflow\[email protected]\encode.go:61:16: undefined: cbor.StreamDecoder
C:\Users\Administrator\go\pkg\mod\github.com\onflow\[email protected]\array.go:273:34: undefined: cbor.StreamDecoder
C:\Users\Administrator\go\pkg\mod\github.com\onflow\[email protected]\array.go:605:12: undefined: cbor.StreamDecoder
C:\Users\Administrator\go\pkg\mod\github.com\onflow\[email protected]\map.go:454:32: undefined: cbor.StreamDecoder
C:\Users\Administrator\go\pkg\mod\github.com\onflow\[email protected]\map.go:535:39: undefined: cbor.StreamDecoder
C:\Users\Administrator\go\pkg\mod\github.com\onflow\[email protected]\map.go:588:45: undefined: cbor.StreamDecoder
C:\Users\Administrator\go\pkg\mod\github.com\onflow\[email protected]\map.go:798:52: undefined: cbor.StreamDecoder
C:\Users\Administrator\go\pkg\mod\github.com\onflow\[email protected]\map.go:798:52: too many errors (exit status 1)

mac os:

# github.com/onflow/atree
../../../Workspace/Environment/gopath/pkg/mod/github.com/onflow/[email protected]/typeinfo.go:33:15: undefined: cbor.StreamEncoder
../../../Workspace/Environment/gopath/pkg/mod/github.com/onflow/[email protected]/typeinfo.go:39:16: undefined: cbor.StreamDecoder
../../../Workspace/Environment/gopath/pkg/mod/github.com/onflow/[email protected]/encode.go:31:26: undefined: cbor.StreamEncoder
../../../Workspace/Environment/gopath/pkg/mod/github.com/onflow/[email protected]/encode.go:61:16: undefined: cbor.StreamDecoder
../../../Workspace/Environment/gopath/pkg/mod/github.com/onflow/[email protected]/array.go:273:34: undefined: cbor.StreamDecoder
../../../Workspace/Environment/gopath/pkg/mod/github.com/onflow/[email protected]/array.go:605:12: undefined: cbor.StreamDecoder
../../../Workspace/Environment/gopath/pkg/mod/github.com/onflow/[email protected]/map.go:454:32: undefined: cbor.StreamDecoder
../../../Workspace/Environment/gopath/pkg/mod/github.com/onflow/[email protected]/map.go:535:39: undefined: cbor.StreamDecoder
../../../Workspace/Environment/gopath/pkg/mod/github.com/onflow/[email protected]/map.go:588:45: undefined: cbor.StreamDecoder
../../../Workspace/Environment/gopath/pkg/mod/github.com/onflow/[email protected]/map.go:798:52: undefined: cbor.StreamDecoder
../../../Workspace/Environment/gopath/pkg/mod/github.com/onflow/[email protected]/map.go:798:52: too many errors (exit status 1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions