Skip to main content
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 and Inco will react to its ops (Base Sepolia and Base mainnet are currently supported). Read on for the reference of the available cheatcodes.