wealdtech / go-ens

Apache License 2.0
90 stars 35 forks source link

go get errors #18

Closed NemboKid closed 2 years ago

NemboKid commented 2 years ago

When doing go get github.com/wealdtech/go-ens I get the following errors. Any ideas how to solve this?

I have go version go1.17.8 darwin/arm64

go: downloading github.com/wealdtech/go-ens v1.0.0
go: downloading github.com/dchest/uniuri v0.0.0-20160212164326-8902c56451e9
go: downloading github.com/deckarep/golang-set v1.7.1
# github.com/wealdtech/go-ens/contracts/reverseregistrar
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/reverseregistrar/reverseregistrar.go:23:6: undefined: abi.U256
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/reverseregistrar/reverseregistrar.go:142:88: cannot use result (type interface {}) as type *[]interface {} in argument to _ReverseRegistrarContract.Contract.ReverseRegistrarContractCaller.contract.Call: need type assertion
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/reverseregistrar/reverseregistrar.go:161:57: cannot use result (type interface {}) as type *[]interface {} in argument to _ReverseRegistrarContract.Contract.contract.Call: need type assertion
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/reverseregistrar/reverseregistrar.go:183:48: cannot use out (type *common.Address) as type *[]interface {} in argument to _ReverseRegistrarContract.contract.Call
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/reverseregistrar/reverseregistrar.go:209:48: cannot use out (type *common.Address) as type *[]interface {} in argument to _ReverseRegistrarContract.contract.Call
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/reverseregistrar/reverseregistrar.go:235:48: cannot use out (type *[32]byte) as type *[]interface {} in argument to _ReverseRegistrarContract.contract.Call
# github.com/wealdtech/go-ens/contracts/auctionregistrar
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/auctionregistrar/auctionregistrar.go:23:6: undefined: abi.U256
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/auctionregistrar/auctionregistrar.go:142:88: cannot use result (type interface {}) as type *[]interface {} in argument to _AuctionRegistrarContract.Contract.AuctionRegistrarContractCaller.contract.Call: need type assertion
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/auctionregistrar/auctionregistrar.go:161:57: cannot use result (type interface {}) as type *[]interface {} in argument to _AuctionRegistrarContract.Contract.contract.Call: need type assertion
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/auctionregistrar/auctionregistrar.go:183:48: cannot use out (type *common.Address) as type *[]interface {} in argument to _AuctionRegistrarContract.contract.Call
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/auctionregistrar/auctionregistrar.go:245:48: cannot use out (type **big.Int) as type *[]interface {} in argument to _AuctionRegistrarContract.contract.Call
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/auctionregistrar/auctionregistrar.go:271:48: cannot use out (type *bool) as type *[]interface {} in argument to _AuctionRegistrarContract.contract.Call
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/auctionregistrar/auctionregistrar.go:297:48: cannot use out (type *uint32) as type *[]interface {} in argument to _AuctionRegistrarContract.contract.Call
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/auctionregistrar/auctionregistrar.go:323:48: cannot use out (type **big.Int) as type *[]interface {} in argument to _AuctionRegistrarContract.contract.Call
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/auctionregistrar/auctionregistrar.go:349:48: cannot use out (type *[32]byte) as type *[]interface {} in argument to _AuctionRegistrarContract.contract.Call
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/auctionregistrar/auctionregistrar.go:375:48: cannot use out (type *common.Address) as type *[]interface {} in argument to _AuctionRegistrarContract.contract.Call
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/auctionregistrar/auctionregistrar.go:375:48: too many errors
# github.com/wealdtech/go-ens/contracts/registry
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/registry/registry.go:23:6: undefined: abi.U256
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/registry/registry.go:142:72: cannot use result (type interface {}) as type *[]interface {} in argument to _RegistryContract.Contract.RegistryContractCaller.contract.Call: need type assertion
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/registry/registry.go:161:49: cannot use result (type interface {}) as type *[]interface {} in argument to _RegistryContract.Contract.contract.Call: need type assertion
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/registry/registry.go:183:40: cannot use out (type *common.Address) as type *[]interface {} in argument to _RegistryContract.contract.Call
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/registry/registry.go:209:40: cannot use out (type *common.Address) as type *[]interface {} in argument to _RegistryContract.contract.Call
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/registry/registry.go:235:40: cannot use out (type *uint64) as type *[]interface {} in argument to _RegistryContract.contract.Call
# github.com/wealdtech/go-ens/contracts/resolver
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/resolver/resolver.go:23:6: undefined: abi.U256
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/resolver/resolver.go:142:72: cannot use result (type interface {}) as type *[]interface {} in argument to _ResolverContract.Contract.ResolverContractCaller.contract.Call: need type assertion
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/resolver/resolver.go:161:49: cannot use result (type interface {}) as type *[]interface {} in argument to _ResolverContract.Contract.contract.Call: need type assertion
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/resolver/resolver.go:213:40: cannot use out (type *common.Address) as type *[]interface {} in argument to _ResolverContract.contract.Call
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/resolver/resolver.go:239:40: cannot use out (type *[]byte) as type *[]interface {} in argument to _ResolverContract.contract.Call
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/resolver/resolver.go:265:40: cannot use out (type *string) as type *[]interface {} in argument to _ResolverContract.contract.Call
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/resolver/resolver.go:295:40: cannot use out (type *struct { X [32]byte; Y [32]byte }) as type *[]interface {} in argument to _ResolverContract.contract.Call
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/resolver/resolver.go:327:40: cannot use out (type *bool) as type *[]interface {} in argument to _ResolverContract.contract.Call
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/resolver/resolver.go:353:40: cannot use out (type *string) as type *[]interface {} in argument to _ResolverContract.contract.Call
# github.com/wealdtech/go-ens/contracts/reverseresolver
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/reverseresolver/reverseresolver.go:23:6: undefined: abi.U256
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/reverseresolver/reverseresolver.go:142:70: cannot use result (type interface {}) as type *[]interface {} in argument to _ReverseResolver.Contract.ReverseResolverCaller.contract.Call: need type assertion
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/reverseresolver/reverseresolver.go:161:48: cannot use result (type interface {}) as type *[]interface {} in argument to _ReverseResolver.Contract.contract.Call: need type assertion
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/reverseresolver/reverseresolver.go:183:39: cannot use out (type *common.Address) as type *[]interface {} in argument to _ReverseResolver.contract.Call
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/reverseresolver/reverseresolver.go:209:39: cannot use out (type *string) as type *[]interface {} in argument to _ReverseResolver.contract.Call
# github.com/wealdtech/go-ens/contracts/deed
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/deed/deed.go:23:6: undefined: abi.U256
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/deed/deed.go:142:64: cannot use result (type interface {}) as type *[]interface {} in argument to _DeedContract.Contract.DeedContractCaller.contract.Call: need type assertion
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/deed/deed.go:161:45: cannot use result (type interface {}) as type *[]interface {} in argument to _DeedContract.Contract.contract.Call: need type assertion
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/deed/deed.go:183:36: cannot use out (type **big.Int) as type *[]interface {} in argument to _DeedContract.contract.Call
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/deed/deed.go:209:36: cannot use out (type *common.Address) as type *[]interface {} in argument to _DeedContract.contract.Call
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/deed/deed.go:235:36: cannot use out (type *common.Address) as type *[]interface {} in argument to _DeedContract.contract.Call
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/deed/deed.go:261:36: cannot use out (type *common.Address) as type *[]interface {} in argument to _DeedContract.contract.Call
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/deed/deed.go:287:36: cannot use out (type **big.Int) as type *[]interface {} in argument to _DeedContract.contract.Call
# github.com/wealdtech/go-ens/util
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/util/signer.go:31:11: cannot use func literal (type func(types.Signer, common.Address, *types.Transaction) (*types.Transaction, error)) as type bind.SignerFn in assignment
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/util/signer.go:44:11: cannot use func literal (type func(types.Signer, common.Address, *types.Transaction) (*types.Transaction, error)) as type bind.SignerFn in assignment
# github.com/wealdtech/go-ens/contracts/dnsresolver
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/dnsresolver/dnsresolver.go:23:6: undefined: abi.U256
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/dnsresolver/dnsresolver.go:142:78: cannot use result (type interface {}) as type *[]interface {} in argument to _DNSResolverContract.Contract.DNSResolverContractCaller.contract.Call: need type assertion
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/dnsresolver/dnsresolver.go:161:52: cannot use result (type interface {}) as type *[]interface {} in argument to _DNSResolverContract.Contract.contract.Call: need type assertion
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/dnsresolver/dnsresolver.go:187:43: cannot use out (type *struct { ContentType *big.Int; Data []byte }) as type *[]interface {} in argument to _DNSResolverContract.contract.Call
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/dnsresolver/dnsresolver.go:219:43: cannot use out (type *common.Address) as type *[]interface {} in argument to _DNSResolverContract.contract.Call
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/dnsresolver/dnsresolver.go:245:43: cannot use out (type *[32]byte) as type *[]interface {} in argument to _DNSResolverContract.contract.Call
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/dnsresolver/dnsresolver.go:271:43: cannot use out (type *[]byte) as type *[]interface {} in argument to _DNSResolverContract.contract.Call
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/dnsresolver/dnsresolver.go:297:43: cannot use out (type *bool) as type *[]interface {} in argument to _DNSResolverContract.contract.Call
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/dnsresolver/dnsresolver.go:323:43: cannot use out (type *string) as type *[]interface {} in argument to _DNSResolverContract.contract.Call
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/dnsresolver/dnsresolver.go:349:43: cannot use out (type *uint16) as type *[]interface {} in argument to _DNSResolverContract.contract.Call
../../go/pkg/mod/github.com/wealdtech/go-ens@v1.0.0/contracts/dnsresolver/dnsresolver.go:349:43: too many errors
ghost commented 2 years ago

I am also having this issue, error log is the same, go version go1.15.15 linux/amd64 Also tried to get not the latest version, but different commits, didn't help.

mcdee commented 2 years ago

Try with go get github.com/wealdtech/go-ens/v3

ghost commented 2 years ago

works for me, thanks!