Skip to content

Ability to tell hardhat about external artifacts so it can reverse lookup abi for errors, etc... #7433

@wighawag

Description

@wighawag

Describe the feature

Right now, with external artifact hardhat produce errors like this :

eth_estimateGas                                                                                                                                                                                                                               
  Contract call:       <UnrecognizedContract>                                                                                                                                                                                                 
  From:                0x9f16c535a9cfdd6aebdb77271f45321b9793de42                                                                                                                                                                             
  To:                  0xa513e6e4b8f2a923d98304ec87f64353c4d5c853                                                                                                                                                                             
  Value:               0 ETH                                                                                                                                                                                                                  
                                                                                                                                                                                                                                              
  Error: VM Exception while processing transaction: reverted with an unrecognized custom error (return data: 0x954de334976ea74026e726554db657fa54763abd0c3a0aa997357df516350c68f9519135)       

This is because hardhat have no way to know about the abi, as it only see the bytecode

if we could have a way of telling hardhat about external artifacts, that would be useful

Search terms

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions