Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token call method on IPC Subnet does not work #187

Closed
AlcibiadesCleinias opened this issue Oct 30, 2023 · 1 comment · Fixed by consensus-shipyard/fendermint#370
Closed
Labels
bug Something isn't working s:fendermint

Comments

@AlcibiadesCleinias
Copy link

Issue type

Bug

Have you reproduced the bug with the latest dev version?

No

Version

b1dc6c1

Custom code

No

OS platform and distribution

No response

Describe the issue

Hi, issue related to the subnet mentioned in the #188 and in the example repo.

when I deployed the contract on IPC subnet and tried to call e.g. Token owner() method it returns with exception.

On calibration the same works as expected

Repro steps

Fetch https://github.com/AlcibiadesCleinias/ipc-debugging

  1. npm i
  2. prepare .env. Only PRIVATE_KEY is needed and the subchain ETH value on the account to deploy contracts + WAIT_CONFIRMATIONS=5 for the same tests on the calibration
  3. All contracts already deployed. If you want to redeploy: delete deployments repo and start with: npx hardhat deploy --network ipcsubnet & npx hardhat deploy --network calibration
  4. npx hardhat check --network ipcsubnet - it fails with provider error

Additionally, you could check that with npx hardhat check --network calibration it works as expected

PS. I put some logs according to the repo of reproducing. But when I was working with proxy like contracts in https://github.com/fluencelabs/deal on kinda the same call rpc requests, ipc subnet returned me:

An unexpected error occurred:

ProviderError: pre-validation failed: Message has no gas limit set

    at HttpProvider.request (/Users/ivan/Documents/fluence/deal/node_modules/hardhat/src/internal/core/providers/http.ts:88:21)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async staticCallResult (/Users/ivan/Documents/fluence/deal/node_modules/ethers/src.ts/contract/contract.ts:323:22)
    at async staticCall (/Users/ivan/Documents/fluence/deal/node_modules/ethers/src.ts/contract/contract.ts:289:24)
    at async Proxy.name (/Users/ivan/Documents/fluence/deal/node_modules/ethers/src.ts/contract/contract.ts:337:41)
    at async SimpleTaskDefinition.action (/Users/ivan/Documents/fluence/deal/tasks/newtask.ts:25:48)
    at async Environment._runTaskDefinition (/Users/ivan/Documents/fluence/deal/node_modules/hardhat/src/internal/core/runtime-environment.ts:358:14)
    at async Environment.run (/Users/ivan/Documents/fluence/deal/node_modules/hardhat/src/internal/core/runtime-environment.ts:191:14)
    at async main (/Users/ivan/Documents/fluence/deal/node_modules/hardhat/src/internal/cli/cli.ts:324:7)

Relevant log output

An unexpected error occurred:

Error: missing revert data in call exception; Transaction reverted without a reason string [ See: https://links.ethers.org/v5-errors-CALL_EXCEPTION ] (data="0x", transaction={"from":"0xC6309b310D589679E9682B47A65c913F158e5953","to":"0x0C1DeADCaC1C77a927d8556E163fd54b5D9eca4b","data":"0x8da5cb5b","accessList":null}, error={"name":"ProviderError","_stack":"ProviderError: HttpProviderError\n    at HttpProvider.request (/Users/ivan/Documents/fluence/ipc-debugging/node_modules/hardhat/src/internal/core/providers/http.ts:78:19)\n    at LocalAccountsProvider.request (/Users/ivan/Documents/fluence/ipc-debugging/node_modules/hardhat/src/internal/core/providers/accounts.ts:187:34)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)\n    at async EthersProviderWrapper.send (/Users/ivan/Documents/fluence/ipc-debugging/node_modules/@nomiclabs/hardhat-ethers/src/internal/ethers-provider-wrapper.ts:13:20)","code":10,"_isProviderError":true,"data":""}, code=CALL_EXCEPTION, version=providers/5.7.2)
    at Logger.makeError (/Users/ivan/Documents/fluence/ipc-debugging/node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
    at Logger.throwError (/Users/ivan/Documents/fluence/ipc-debugging/node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
    at checkError (/Users/ivan/Documents/fluence/ipc-debugging/node_modules/@ethersproject/providers/src.ts/json-rpc-provider.ts:66:16)
    at EthersProviderWrapper.<anonymous> (/Users/ivan/Documents/fluence/ipc-debugging/node_modules/@ethersproject/providers/src.ts/json-rpc-provider.ts:642:20)
    at step (/Users/ivan/Documents/fluence/ipc-debugging/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:48:23)
    at Object.throw (/Users/ivan/Documents/fluence/ipc-debugging/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:29:53)
    at rejected (/Users/ivan/Documents/fluence/ipc-debugging/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:21:65)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  reason: 'missing revert data in call exception; Transaction reverted without a reason string',
  code: 'CALL_EXCEPTION',
  data: '0x',
  transaction: {
    from: '0xC6309b310D589679E9682B47A65c913F158e5953',
    to: '0x0C1DeADCaC1C77a927d8556E163fd54b5D9eca4b',
    data: '0x8da5cb5b',
    accessList: null
  },
  error: ProviderError: HttpProviderError
      at HttpProvider.request (/Users/ivan/Documents/fluence/ipc-debugging/node_modules/hardhat/src/internal/core/providers/http.ts:78:19)
      at LocalAccountsProvider.request (/Users/ivan/Documents/fluence/ipc-debugging/node_modules/hardhat/src/internal/core/providers/accounts.ts:187:34)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)
      at async EthersProviderWrapper.send (/Users/ivan/Documents/fluence/ipc-debugging/node_modules/@nomiclabs/hardhat-ethers/src/internal/ethers-provider-wrapper.ts:13:20)
}
@AlcibiadesCleinias AlcibiadesCleinias added the bug Something isn't working label Oct 30, 2023
@AlcibiadesCleinias
Copy link
Author

fyi: I provided the example repo with hardhat example Token contract

@jsoares jsoares transferred this issue from consensus-shipyard/fendermint Dec 19, 2023
@jsoares jsoares closed this as not planned Won't fix, can't repro, duplicate, stale Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working s:fendermint
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants