aurora-is-near / aurora-relayer

[DEPRECATED] Web3-compatible relayer server for Aurora.
https://aurora-is-near.github.io/aurora-relayer/
Creative Commons Zero v1.0 Universal
26 stars 13 forks source link

[BUG] Cannot parse response of contract functions with 2 array outputs #297

Closed baboobhaiya closed 1 year ago

baboobhaiya commented 2 years ago

Describe the bug Aurora nodes cannot parse the response of a contract function with 2 array outputs.

To Reproduce Steps to reproduce the behavior, e.g.:

  1. Go to : https://aurorascan.dev/address/0x6820E1EB7412cADB107B415DC9f8e05210e847AE#readContract
  2. Scroll down to pendingTokens and query with inputs 0, "0x85BD2E6Ab9D510C9c8a1B4B50B7Ace28528Bb385", "0"
  3. See error: cannot get a response

When querying the same function via node we get the following response

Complex N Rewarder address: 0x6820E1EB7412cADB107B415DC9f8e05210e847AE 
ProviderError: Internal Error - The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received an instance of Object. Please report a bug at <https://github.com/aurora-is-near/aurora-relayer/issues>
    at HttpProvider.request (/home/ankit/baboobhaiya/trisolaris_core/node_modules/hardhat/src/internal/core/providers/http.ts:49:19)
    at HDWalletProvider.request (/home/ankit/baboobhaiya/trisolaris_core/node_modules/hardhat/src/internal/core/providers/accounts.ts:168:34)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at EthersProviderWrapper.send (/home/ankit/baboobhaiya/trisolaris_core/node_modules/@nomiclabs/hardhat-ethers/src/internal/ethers-provide
r-wrapper.ts:13:20)

Expected behavior The node should return a response, the same contract function on ropsten returns the correct response https://ropsten.etherscan.io/tx/0x987522f7fe0b60849f64bc9d7c9f887a00355d354d2b023a861b007cad4c8969

Screenshots image

Technical Details (please complete relevant fields):

Additional context Add any other context about the problem here.

spilin commented 1 year ago

This repository is deprecated. If issue still persists, please reopen it on a new repository of Aurora Relayer v2.