Link solidity source code to deployed contract in forked network #3656
-
I am debugging my smart contract using local forked mainnet. My contract calls an underlying smart contract which is not deployed by me. When the underlying smart contract fails and throws an exception, the stacktrace only shows |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The easiest way to do this is to just add the source code to your project. Make sure that the right compiler options are used; if they don't match the ones used by your contract, you can use compiler overrides. |
Beta Was this translation helpful? Give feedback.
The easiest way to do this is to just add the source code to your project. Make sure that the right compiler options are used; if they don't match the ones used by your contract, you can use compiler overrides.