When I try to run addFace.js, I am getting the following error and trace:
C:\Program Files\nodejs\node.exe console\addFace2.js
OG callback says: 0x35d17b7086fb71afe2d55849ff52c9a2b3390561594a330a8713707d1db79f41
transactionHash callback says:0x35d17b7086fb71afe2d55849ff52c9a2b3390561594a330a8713707d1db79f41
receipt callback says: 0x34C0B23EFBC7542117315c77fa08cca417c6b9fe
at CoderTuple.decode (d:\Codes\blockchain\eth-face-chain\console\node_modules\ethers\utils\abi-coder.js:767:22)
at AbiCoder.decode (d:\Codes\blockchain\eth-face-chain\console\node_modules\ethers\utils\abi-coder.js:912:61)
at ABICoder.decodeParameters (d:\Codes\blockchain\eth-face-chain\console\node_modules\web3-eth-abi\src\index.js:229:30)
at Contract._decodeMethodReturn (d:\Codes\blockchain\eth-face-chain\console\node_modules\web3-eth-contract\src\index.js:465:22)
at Method.outputFormatter (d:\Codes\blockchain\eth-face-chain\console\node_modules\web3-eth-contract\src\index.js:818:46)
at Method.formatOutput (d:\Codes\blockchain\eth-face-chain\console\node_modules\web3-core-method\src\index.js:163:54)
at sendTxCallback (d:\Codes\blockchain\eth-face-chain\console\node_modules\web3-core-method\src\index.js:473:33)
at d:\Codes\blockchain\eth-face-chain\console\node_modules\web3-core-requestmanager\src\index.js:147:9
at XMLHttpRequest.request.onreadystatechange (d:\Codes\blockchain\eth-face-chain\console\node_modules\web3-providers-http\src\index.js:96:13)
at XMLHttpRequestEventTarget.dispatchEvent (d:\Codes\blockchain\eth-face-chain\console\node_modules\xhr2-cookies\dist\xml-http-request-event-target.js:34:22)
at XMLHttpRequest._setReadyState (d:\Codes\blockchain\eth-face-chain\console\node_modules\xhr2-cookies\dist\xml-http-request.js:208:14)
at XMLHttpRequest._onHttpResponseEnd (d:\Codes\blockchain\eth-face-chain\console\node_modules\xhr2-cookies\dist\xml-http-request.js:318:14)
at IncomingMessage. (d:\Codes\blockchain\eth-face-chain\console\node_modules\xhr2-cookies\dist\xml-http-request.js:289:61)
at IncomingMessage.emit (events.js:187:15)
at endReadableNT (_stream_readable.js:1094:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
(node:15480) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:15480) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Following is what comes up in testrpc:
eth_accounts
eth_gasPrice
eth_sendTransaction
Transaction: 0x35d17b7086fb71afe2d55849ff52c9a2b3390561594a330a8713707d1db79f41
Contract created: 0x34c0b23efbc7542117315c77fa08cca417c6b9fe
Gas usage: 3314508
Block Number: 12
Block Time: Fri Jan 25 2019 14:58:54 GMT+0530 (India Standard Time)
eth_getTransactionReceipt
eth_getCode
eth_call
This is what my conf.json looks like:
{
"addr": "http://localhost:8545",
"project_dir": "D:/Codes/blockchain/eth-face-chain/console",
"contract_dir": "D:/Codes/blockchain/eth-face-chain/contracts",
"master_contract": "0x5753849860c6426962575b1c4a608d09d7e0fef4",
"master_addr": "0xBbA0F4002F46eE6AC4FDe2a7CA0B711BbBB1C738"
}
Please let me know what's going wrong and how to solve it :)
When I try to run addFace.js, I am getting the following error and trace:
C:\Program Files\nodejs\node.exe console\addFace2.js
OG callback says: 0x35d17b7086fb71afe2d55849ff52c9a2b3390561594a330a8713707d1db79f41
transactionHash callback says:0x35d17b7086fb71afe2d55849ff52c9a2b3390561594a330a8713707d1db79f41
receipt callback says: 0x34C0B23EFBC7542117315c77fa08cca417c6b9fe
at CoderTuple.decode (d:\Codes\blockchain\eth-face-chain\console\node_modules\ethers\utils\abi-coder.js:767:22)
at AbiCoder.decode (d:\Codes\blockchain\eth-face-chain\console\node_modules\ethers\utils\abi-coder.js:912:61)
at ABICoder.decodeParameters (d:\Codes\blockchain\eth-face-chain\console\node_modules\web3-eth-abi\src\index.js:229:30)
at Contract._decodeMethodReturn (d:\Codes\blockchain\eth-face-chain\console\node_modules\web3-eth-contract\src\index.js:465:22)
at Method.outputFormatter (d:\Codes\blockchain\eth-face-chain\console\node_modules\web3-eth-contract\src\index.js:818:46)
at Method.formatOutput (d:\Codes\blockchain\eth-face-chain\console\node_modules\web3-core-method\src\index.js:163:54)
at sendTxCallback (d:\Codes\blockchain\eth-face-chain\console\node_modules\web3-core-method\src\index.js:473:33)
at d:\Codes\blockchain\eth-face-chain\console\node_modules\web3-core-requestmanager\src\index.js:147:9
at XMLHttpRequest.request.onreadystatechange (d:\Codes\blockchain\eth-face-chain\console\node_modules\web3-providers-http\src\index.js:96:13)
at XMLHttpRequestEventTarget.dispatchEvent (d:\Codes\blockchain\eth-face-chain\console\node_modules\xhr2-cookies\dist\xml-http-request-event-target.js:34:22)
at XMLHttpRequest._setReadyState (d:\Codes\blockchain\eth-face-chain\console\node_modules\xhr2-cookies\dist\xml-http-request.js:208:14)
at XMLHttpRequest._onHttpResponseEnd (d:\Codes\blockchain\eth-face-chain\console\node_modules\xhr2-cookies\dist\xml-http-request.js:318:14)
at IncomingMessage. (d:\Codes\blockchain\eth-face-chain\console\node_modules\xhr2-cookies\dist\xml-http-request.js:289:61)
at IncomingMessage.emit (events.js:187:15)
at endReadableNT (_stream_readable.js:1094:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
(node:15480) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:15480) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Following is what comes up in testrpc:
eth_accounts
eth_gasPrice
eth_sendTransaction
Transaction: 0x35d17b7086fb71afe2d55849ff52c9a2b3390561594a330a8713707d1db79f41
Contract created: 0x34c0b23efbc7542117315c77fa08cca417c6b9fe
Gas usage: 3314508
Block Number: 12
Block Time: Fri Jan 25 2019 14:58:54 GMT+0530 (India Standard Time)
eth_getTransactionReceipt
eth_getCode
eth_call
This is what my conf.json looks like:
{
"addr": "http://localhost:8545",
"project_dir": "D:/Codes/blockchain/eth-face-chain/console",
"contract_dir": "D:/Codes/blockchain/eth-face-chain/contracts",
"master_contract": "0x5753849860c6426962575b1c4a608d09d7e0fef4",
"master_addr": "0xBbA0F4002F46eE6AC4FDe2a7CA0B711BbBB1C738"
}
Please let me know what's going wrong and how to solve it :)