Ether1Project / ethofs-sdk

MIT License
1 stars 3 forks source link

pinList Broken on NCR branch #11

Closed ghost closed 3 years ago

ghost commented 3 years ago

I troubleshooted the issue:

This line seems to be the issue

client.ethoFSContract.methods.GetHostingContractAddress(client.web3.eth.defaultAccount, index).call().catch(reject)

throws the following error, I checked that client.web3.eth.defaultAccount holds the correct address, has the backend API changed?

Error: invalid address (argument="address", value={}, code=INVALID_ARGUMENT, version=address/5.3.0) (argument="HostingContractAddress", value={}, code=INVALID_ARGUMENT, version=abi/5.0.7)
    at Logger.makeError (index.js:173)
    at Logger.throwError (index.js:182)
    at Logger.throwArgumentError (index.js:185)
    at AddressCoder._throwError (abstract-coder.js:38)
    at AddressCoder.encode (address.js:14)
    at array.js:57
    at Array.forEach (<anonymous>)
    at pack (array.js:43)
    at TupleCoder.encode (tuple.js:19)
    at AbiCoder.encode (abi-coder.js:82)
ghost commented 3 years ago

@fallengravity , thanks for the hint. Fixed