Your First Smart Contract
Last updated
Last updated
Building and Deploying smart contracts on Injective should be quite simple. As your first example, we'll take a look at a simple Counter smart contract example.
We'll develop the smart contract,
Do a Testnet Deployment on the Injective's EVM Testnet,
Query the smart contract using ,
Send a transaction to change the smart contract state using ,
The guide uses for deployments. Install it by running:
To verify the installation:
Add Injective EVM to your foundry.toml
We can build a simple Counter example and then do a transaction/query the smart contract state.
This is just a simple Counter smart contract written in Solidity.
You can read more about the process of Testnet Deployment in the page referenced in the link.
Let's query the smart contract state using
Let's make a transaction and change the smart contract state using
← Previous
Next →