Step 2. Add smart contracts

To simplify setting up a new automation workflow, we will add 3 smart contracts within Nerif App:

  1. Ethereum NerifBridge smart contract

  2. Polygon NerifBridge smart contract

  3. TestReceiver smart contract.

We’ll be using the code published on Nerif Network’s Github:

We suggest using the above code as a base to deploy your own smart contracts using Remix or any other preferred tool.

Let’s see how to add smart contracts in the example for Ethereum NerifBridge smart contract.

To add a deployed smart contract with the Nerif App, just click on “Contracts” and paste in the contract address, select the respective network (Etherem Goerli), and add a name to it. Picking a name is optional, but for convenience, we named the contract deployed to Ethereum Goerli “Ethereum NerifBridge”.

Also, note that if the name is not specified and the contract is verified on etherscan, the verified name will be applied.

Finally, allow Nerif App to automatically determine contract ABI (subject to a contract being verified). If the contract is not publicly verified on Etherscan, you’ll need to specify contract ABI manually.

Press “Create Contract” to complete the process.

Repeat the above process for 2 remaining smart contracts for Polygon NerifBridge smart contract and TestReceiver smart contract:

Last updated