chenzhijie / go-web3

Ethereum Golang API, JSON-RPC client, Smart contract transaction API.
GNU Lesser General Public License v3.0
219 stars 74 forks source link

panic: abi: cannot use string as type array as argument #20

Closed yisar closed 1 year ago

yisar commented 1 year ago
allowance, err := contract.Call("allowance", web3.Eth.Address(), "0x0000000000000000000000000000000000000002")
if err != nil {
    panic(err)
}
Dou-xx commented 1 year ago
allowance, err := contract.Call("allowance", web3.Eth.Address(), "0x0000000000000000000000000000000000000002")
if err != nil {
  panic(err)
}

common.HexToAddress("0x0000000000000000000000000000000000000002")