Development-Envirnoment
Last updated
Was this helpful?
Last updated
Was this helpful?
If you are an Ethereum developer, you're also a Nahmii developer, as the tools used on Ethereum are supported on Nahmii; Remix, Web3js, OpenZeppelin, Hardhat, etc. Make the switch to Nahmii's RPC and get started.
Nahmii Test Network connects with Ethereum's Rospten Testnet, and all network-related details can be found .
Setup
Deploy your contracts on Nahmii using
There are a few requirements, please install the following to get started:
Node.js v12+ LTS and npm
Git
Install the NVM Hardhat plugin.
Edit hardhat.config.js
to use the NVM package.
In the file, add nahmii
to the list of networks.
Note: Update the accounts fields to fit your personal setup.
To test contracts on the live Nahmii L2, compile it with HardHat.
To interact with the smart contracts manually, use the console. The JavaScript console can be run with the following command.
Remix is an online IDE to develop smart contracts
Configuration
In a new remix workspace, navigate to the PLUGIN MANAGER
.
Activate the OPTIMISM COMPILER
.
A new compiler tab will show up. Select a Solidity file to compile. Be sure to select the correct compiler version for your smart contract.
To deploy to Nahmii, write a deploy script for HardHat () and run the following command.