Test your contract
Test your contract in solidity, using Inco cheatcodes
In the package that comes the Inco library, an extension to the usual Test
Foundry contract is provided.
You can import it like this:
IncoTest
extends Foundry’s Test
contract, and exposes useful Inco-specific cheatcodes to test your contract.
If you are extending the setUp
function, remember to call super.setUp()
at the beginning of your function.
Example
The following example is present with comments explaining the code here in the lightning-rod template.
Once you are happy with the state of your contract, you can deploy it as-is without any changes and Inco will react to its ops (as long as you are on a supported network, currently only Base-Sepolia).
Read on for the reference of the available cheatcodes.
Was this page helpful?