kenglou.lee
7 months ago  Karma: 20
Can't Retrieve Rinkeby Gateway Contract Address when trying out the tutorial

as titled.

I'm following the tutorial of LOOM SDK and up to a stage that i want to deposit the Rinkeby Coin that i created so i call the following function

node ./gateway-cli.js deposit-coin 120

unfortunately it shows me error as below:
{ Error: invalid address (arg="_spender", coderType="address", value=undefined)
at Object.throwError (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/node_modules/ethers/utils/errors.js:68:17)
at CoderAddress.encode (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/node_modules/ethers/utils/abi-coder.js:467:20)
at /Volumes/Data/BlockChain/loom/truffle-dappchain-example/node_modules/ethers/utils/abi-coder.js:605:59
at Array.forEach (<anonymous>)
at pack (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/node_modules/ethers/utils/abi-coder.js:604:12)
at CoderTuple.encode (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/node_modules/ethers/utils/abi-coder.js:764:16)
at AbiCoder.encode (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/node_modules/ethers/utils/abi-coder.js:897:77)
at ABICoder.encodeParameters (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/node_modules/web3-eth-abi/src/index.js:96:27)
at /Volumes/Data/BlockChain/loom/truffle-dappchain-example/node_modules/web3-eth-contract/src/index.js:426:24
at Array.map (<anonymous>)
at Object._encodeMethodABI (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/node_modules/web3-eth-contract/src/index.js:425:12)
at Object._processExecuteArguments (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/node_modules/web3-eth-contract/src/index.js:741:39)
at Object._executeMethod (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/node_modules/web3-eth-contract/src/index.js:766:54)
at depositCoinToRinkebyGateway (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/gateway-cli.js:62:6)
at <anonymous>
reason: 'invalid address',
code: 'INVALID_ARGUMENT',
arg: '_spender',
coderType: 'address',
value: undefined }

after that, i try to get the Rinkeby Gateway address by just go and find the rinkeby contract and replace it with the code inside "gateway-cli.js", but the following error appears:

```{ Error: invalid number value (arg="value", coderType="uint256", value=120000000000000000000)
at Object.throwError (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/node
modules/ethers/utils/errors.js:68:17)
at CoderNumber.encode (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/nodemodules/ethers/utils/abi-coder.js:353:20)
at /Volumes/Data/BlockChain/loom/truffle-dappchain-example/node
modules/ethers/utils/abi-coder.js:605:59
at Array.forEach ()
at pack (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/nodemodules/ethers/utils/abi-coder.js:604:12)
at CoderTuple.encode (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/node
modules/ethers/utils/abi-coder.js:764:16)
at AbiCoder.encode (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/nodemodules/ethers/utils/abi-coder.js:897:77)
at ABICoder.encodeParameters (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/node
modules/web3-eth-abi/src/index.js:96:27)
at /Volumes/Data/BlockChain/loom/truffle-dappchain-example/nodemodules/web3-eth-contract/src/index.js:426:24
at Array.map ()
at Object.
encodeMethodABI (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/nodemodules/web3-eth-contract/src/index.js:425:12)
at Object.
processExecuteArguments (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/nodemodules/web3-eth-contract/src/index.js:741:39)
at Object.
executeMethod (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/nodemodules/web3-eth-contract/src/index.js:766:54)
at depositCoinToRinkebyGateway (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/gateway-cli.js:63:6)
at
reason: 'invalid number value',
code: 'INVALID
ARGUMENT',
arg: '_value',
coderType: 'uint256',
value: 120000000000000000000 }

anyone has any clue on this tutorial as I'm stuck here.


en
tutorial
#loom-sdk
#transferGateway
kenglou.lee
7 months ago  Karma: 20
Can't Retrieve Rinkeby Gateway Contract Address when trying out the tutorial

as titled.

I'm following the tutorial of LOOM SDK and up to a stage that i want to deposit the Rinkeby Coin that i created so i call the following function

node ./gateway-cli.js deposit-coin 120

unfortunately it shows me error as below:
{ Error: invalid address (arg="_spender", coderType="address", value=undefined)
at Object.throwError (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/node_modules/ethers/utils/errors.js:68:17)
at CoderAddress.encode (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/node_modules/ethers/utils/abi-coder.js:467:20)
at /Volumes/Data/BlockChain/loom/truffle-dappchain-example/node_modules/ethers/utils/abi-coder.js:605:59
at Array.forEach (<anonymous>)
at pack (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/node_modules/ethers/utils/abi-coder.js:604:12)
at CoderTuple.encode (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/node_modules/ethers/utils/abi-coder.js:764:16)
at AbiCoder.encode (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/node_modules/ethers/utils/abi-coder.js:897:77)
at ABICoder.encodeParameters (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/node_modules/web3-eth-abi/src/index.js:96:27)
at /Volumes/Data/BlockChain/loom/truffle-dappchain-example/node_modules/web3-eth-contract/src/index.js:426:24
at Array.map (<anonymous>)
at Object._encodeMethodABI (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/node_modules/web3-eth-contract/src/index.js:425:12)
at Object._processExecuteArguments (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/node_modules/web3-eth-contract/src/index.js:741:39)
at Object._executeMethod (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/node_modules/web3-eth-contract/src/index.js:766:54)
at depositCoinToRinkebyGateway (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/gateway-cli.js:62:6)
at <anonymous>
reason: 'invalid address',
code: 'INVALID_ARGUMENT',
arg: '_spender',
coderType: 'address',
value: undefined }

after that, i try to get the Rinkeby Gateway address by just go and find the rinkeby contract and replace it with the code inside "gateway-cli.js", but the following error appears:

```{ Error: invalid number value (arg="value", coderType="uint256", value=120000000000000000000)
at Object.throwError (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/node
modules/ethers/utils/errors.js:68:17)
at CoderNumber.encode (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/nodemodules/ethers/utils/abi-coder.js:353:20)
at /Volumes/Data/BlockChain/loom/truffle-dappchain-example/node
modules/ethers/utils/abi-coder.js:605:59
at Array.forEach ()
at pack (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/nodemodules/ethers/utils/abi-coder.js:604:12)
at CoderTuple.encode (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/node
modules/ethers/utils/abi-coder.js:764:16)
at AbiCoder.encode (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/nodemodules/ethers/utils/abi-coder.js:897:77)
at ABICoder.encodeParameters (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/node
modules/web3-eth-abi/src/index.js:96:27)
at /Volumes/Data/BlockChain/loom/truffle-dappchain-example/nodemodules/web3-eth-contract/src/index.js:426:24
at Array.map ()
at Object.
encodeMethodABI (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/nodemodules/web3-eth-contract/src/index.js:425:12)
at Object.
processExecuteArguments (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/nodemodules/web3-eth-contract/src/index.js:741:39)
at Object.
executeMethod (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/nodemodules/web3-eth-contract/src/index.js:766:54)
at depositCoinToRinkebyGateway (/Volumes/Data/BlockChain/loom/truffle-dappchain-example/gateway-cli.js:63:6)
at
reason: 'invalid number value',
code: 'INVALID
ARGUMENT',
arg: '_value',
coderType: 'uint256',
value: 120000000000000000000 }

anyone has any clue on this tutorial as I'm stuck here.


en
tutorial
#loom-sdk
#transferGateway

ONE ANSWER
Earn tokens by posting and answering questions about blockchain!
Karma to eth
YOUR ANSWER