Update README

This commit is contained in:
Oskar Thoren 2021-02-02 12:58:58 +08:00
parent 53a029c4f1
commit c2a21931cd
No known key found for this signature in database
GPG Key ID: BDB55C8C0EF29911
1 changed files with 7 additions and 3 deletions

View File

@ -15,8 +15,12 @@ For scripts there is a script to setup SWAP contracts. To run it and make it per
# Run a node # Run a node
npx hardhat node npx hardhat node
# Run script to setup SWAP contracts # Run script to setup SWAP contracts on local hardhat node
npx hardhat run scripts/setup-swap.js npx hardhat run scripts/setup-swap.js --network localhost
``` ```
Which will return you a list a list of addresses for ERC20, Alice, Bob, and their respective SWAP contracts. Which will return you a list a list of addresses for ERC20, Alice, Bob, and their respective SWAP contracts. You can then interact with it by running a console:
``` sh
npx hardhat console --network localhost
```