Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Latest commit

 

History

History
31 lines (19 loc) · 1.49 KB

Readme.md

File metadata and controls

31 lines (19 loc) · 1.49 KB

fEVM deployment tutorial

This repo contains a simple HelloWorld contract intended for testing the deployment pipeline for the fEVM. We leverage the foundry toolkit. To ascertain the contract is functioning as intended:

forge test --gas-report

You should see the following output:

| src/HelloWorld.sol:HelloWorld contract |                 |     |        |     |         |
|----------------------------------------|-----------------|-----|--------|-----|---------|
| Deployment Cost                        | Deployment Size |     |        |     |         |
| 45499                                  | 258             |     |        |     |         |
| Function Name                          | min             | avg | median | max | # calls |
| sayHelloWorld                          | 444             | 444 | 444    | 444 | 1       |

To deploy the contract we recommend using a ledger with the Ethereum application installed. To activate the address on the specific network you're using, ensure the address has received FIL before and has FIL available to pay for deployment gas costs (either via a facuet for testnets or readl deal FIL for mainnet).

You can then deploy the contract using

forge create HelloWorld --rpc-url=<INSERT NETWORK RPC URL> -l --retries 10