You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling a function on this conract const contractAddress = "0x5c11016ee4f8ad4ea2ab8b1b366f32d30d48a031";
I am able to easily fetch simple data as seen below
const provider = new JsonRpcProvider(providerUrl);
const contract = new Contract(contractAddress, contractABI, provider);
const name = await contract.name();
const contestDeadline = await contract.contestDeadline();
But when i attempt to run a function that is meant to return an array of strings like this const voters = await contract.getAllAddressesThatHaveVoted();
I am seeing this error
Error calling contract function: Error: essential-eth does not yet support "address[]" outputs. Make a PR today!"
at /workspace/node_modules/essential-eth/dist/cjs/classes/utils/encode-decode-transaction.js:170:23
at Array.map (<anonymous>)
at decodeRPCResponse (/workspace/node_modules/essential-eth/dist/cjs/classes/utils/encode-decode-transaction.js:154:44)
at Contract.getAllProposalAuthors (/workspace/node_modules/essential-eth/dist/cjs/classes/Contract.js:64:78)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async getJokeRaceContestData (/workspace/src/tests/jokerace.ts:32:26)
at async localtest (/workspace/src/tests/test.ts:977:3)
at async start (/workspace/src/index.ts:15:5)
Note that when running this with ethers the correct response returns an array of strings correctly
When calling a function on this conract
const contractAddress = "0x5c11016ee4f8ad4ea2ab8b1b366f32d30d48a031";
I am able to easily fetch simple data as seen below
But when i attempt to run a function that is meant to return an array of strings like this
const voters = await contract.getAllAddressesThatHaveVoted();
I am seeing this error
Note that when running this with ethers the correct response returns an array of strings correctly
The text was updated successfully, but these errors were encountered: