Skip to content

Improve hardhat fhevm check-contract task #30

@0xalexbel

Description

@0xalexbel

The following occurs when trying to check non deployed contract address:

bunx hardhat fhevm check-contract --address 0x41dbc3caf242b90a7d61798d3f39a011c77c85e2

An unexpected error occurred:

Error: could not decode result data (value="0x", info={ "method": "getFHEVMExecutorAddress", "signature": "getFHEVMExecutorAddress()" }, code=BAD_DATA, version=6.14.4)
    at makeError (/Users/alex/src/me/zama-ai/monorepo/fhevm-hardhat-template/node_modules/ethers/src.ts/utils/errors.ts:698:21)
  • Should first check if contract exists and write a nice message
  • This error happens very frequently since we often forget to mention the network name.
  • May be check in deployments folder to try to detect the contract address.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions