Interact with a Precompile
Learn about why you should utilize Precompiles in your smart contracts.
So let's get to it and interact with a precompile on the C-Chain of your local network.
Call Precompile from Foundry
In this example, we will call the SHA256 precompile to generate hash of the input string.
Precompile Address: 0x0000000000000000000000000000000000000002
You should see a bytes32 hash of the input string test
as the output.