Skip to content

Testing Instructions

Angela edited this page May 26, 2022 · 1 revision

For Arweave, to test locally:

  • run a local arlocal node: $ npx arlocal
  • either generate a new wallet using $ node src/utils/arweave/tasks/account/wallet or fund the test account in src/utils/arweave/key.json using $ 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
  • Screenshot 2022-05-16 at 3 44 03 AM

For Ethereum:

  • 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
Clone this wiki locally