-
Notifications
You must be signed in to change notification settings - Fork 8
Testing Instructions
Angela edited this page May 26, 2022
·
1 revision
- run a local
arlocalnode:$ npx arlocal - either generate a new wallet using
$ node src/utils/arweave/tasks/account/walletor fund the test account insrc/utils/arweave/key.jsonusing$ node src/utils/arweave/tasks/account/fund(funds 100 AR) - check balance of the account stored (in key.json) using
$ node src/utils/arweave/tasks/account/balance - nothing needs to be changed in the code since the arweave config is currently set for
localhost:1984 - to mine a block run
$ node src/utils/arweave/tasks/mine - to switch to arweave mainnet, change config in
$ node src/utils/arweave/config.json - the function just logs the transaction id in browser console as soon as the upload finishes, navigating to
http://localhost:1984/${id}should display the image -
- run a local hardhat node
yarn localnode(inside the dapp directory) - deploy contracts
yarn deploylocal - make changes to the contract addresses in
src/utils/eth/constants.js
Real power is the persistent courage to be at ease with the unsolved and the unfinished