Closed gmesika-coti closed 3 months ago
Running yarn dataOnChain produces the following error:
yarn dataOnChain
spencer@ IL-MB-Spencer coti-sdk-typescript-examples % yarn dataOnChain yarn run v1.22.19 warning ../package.json: No license field $ ts-node src/main.ts dataOnChain provider: https://devnet.coti.io/rpc chainId: 13068200 latest block: 72292 account address: 0xC9BC35648B1d68b473f2ae449053C3d40B59269E account balance: 9881043190000000000n wei ( 9.88104319 ether) account nonce: 13 Running dataOnChain example... setting network encrypted value: 100 /Users/spencer/Desktop/COTI/coti-sdk-typescript-examples/node_modules/ethers/src.ts/utils/errors.ts:694 error = new Error(message); ^ Error: could not decode result data (value="0x", info={ "method": "getNetworkSomeEncryptedValue", "signature": "getNetworkSomeEncryptedValue()" }, code=BAD_DATA, version=6.13.1) at makeError (/Users/spencer/Desktop/COTI/coti-sdk-typescript-examples/node_modules/ethers/src.ts/utils/errors.ts:694:21) at assert (/Users/spencer/Desktop/COTI/coti-sdk-typescript-examples/node_modules/ethers/src.ts/utils/errors.ts:715:25) at Interface.decodeFunctionResult (/Users/spencer/Desktop/COTI/coti-sdk-typescript-examples/node_modules/ethers/src.ts/abi/interface.ts:916:15) at staticCallResult (/Users/spencer/Desktop/COTI/coti-sdk-typescript-examples/node_modules/ethers/src.ts/contract/contract.ts:346:35) at processTicksAndRejections (node:internal/process/task_queues:95:5) at async staticCall (/Users/spencer/Desktop/COTI/coti-sdk-typescript-examples/node_modules/ethers/src.ts/contract/contract.ts:303:24) at async Proxy.getNetworkSomeEncryptedValue (/Users/spencer/Desktop/COTI/coti-sdk-typescript-examples/node_modules/ethers/src.ts/contract/contract.ts:351:41) at async dataOnChainExample (/Users/spencer/Desktop/COTI/coti-sdk-typescript-examples/src/examples/dataOnChain.ts:25:35) at async main (/Users/spencer/Desktop/COTI/coti-sdk-typescript-examples/src/main.ts:37:9) { code: 'BAD_DATA', value: '0x', info: { method: 'getNetworkSomeEncryptedValue', signature: 'getNetworkSomeEncryptedValue()' }, shortMessage: 'could not decode result data' }
also facing issues to run the examples :
Running
yarn dataOnChain
produces the following error: