Alethio / web3-multicall-go

Go interface for a Multicall contract to batch EVM state reads in a single ethcall
MIT License
35 stars 29 forks source link

Assignment mismatch error #11

Open sabin88 opened 2 years ago

sabin88 commented 2 years ago

I am trying to run one of the example functions, and I get this error. It happens during the compilation, it doesn't starts the call.

# github.com/alethio/web3-multicall-go/multicall
C:\Users\usr1\go\pkg\mod\github.com\alethio\web3-multicall-go@v0.0.15\multicall\viewcall.go:259:8: assignment mismatch: 1 variable but wrapperArgs.Unpack returns 2 values
C:\Users\usr1\go\pkg\mod\github.com\alethio\web3-multicall-go@v0.0.15\multicall\viewcall.go:259:37: too many arguments in call to wrapperArgs.Unpack
        have (*wrapperRet, []byte)
        want ([]byte)