Skip to content

Commit

Permalink
last chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
kmurphypolygon committed Feb 23, 2024
1 parent a76cee7 commit 44298a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/tools/dApp-development/launchpad/common-pitfalls.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Every time the dev environment starts, a new local test chain is started. Metamask maintains a cache of "latest block number" and "account transaction nonce". Since every run of `dev` creates a new chain, it never matches with this cache.

To know how to clear the cache, [read this](https://support.metamask.io/hc/en-us/articles/360015488891-How-to-clear-your-account-activity-reset-account).
To clear the cache, follow the [MetaMask documentation](https://support.metamask.io/hc/en-us/articles/360015488891-How-to-clear-your-account-activity-reset-account).

## MetaMask transactions fail with a nonce error when using the **reset on change** option in dev environment

Expand Down
10 changes: 4 additions & 6 deletions docs/tools/dApp-development/launchpad/smart-contracts.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ For all available options run:
dapp-launchpad dev -h
```

Internally, the `dev` command runs the `scripts/deploy_localhost` script that deploys all contracts in the correct sequence.
Internally, the [`dev`](commands.md#dev) command runs the `scripts/deploy_localhost` script that deploys all contracts in the correct sequence.

!!! warning
When working on your own smart contracts, make sure to update this script.
Expand All @@ -29,19 +29,17 @@ Internally, the `dev` command runs the `scripts/deploy_localhost` script that de

Optionally, you can enable a local blockchain explorer, which auto-indexes all transactions, and provides a feature-loaded dashboard with an overview of the chain.

To use it, run the `[dev]()` command with `-e`.
To use it, run the [`dev`](commands.md#dev) command with `-e`.

!!! info "Setting up an explorer"
- Sign up on [Ethernal](https://app.tryethernal.com/), and create a workspace.
- Then, add your login email, password, and workspace details in the `.env` file in the `smart-contracts` directly.

The above config can also be mentioned with [`dev`]() command params `--ethernal-login-email`, `--ethernal-login-password` and `--ethernal-workspace`, which override the preset environment variables.

Once started, you can access the chain explorer at the same URL as mentioned before.
The above config can also be mentioned with [`dev`](commands.md#dev) command params `--ethernal-login-email`, `--ethernal-login-password` and `--ethernal-workspace`, which override the preset environment variables.

## Deploying to production

The [`deploy`]() command automates deploying to any EVM compatible chain. It runs the provided `scripts/deploy_prod` script to deploy all contracts in the correct sequence. When working on your own smart contracts, make sure to update this script.
The [`deploy`](commands.md#deploy) command automates deploying to any EVM compatible chain. It runs the provided `scripts/deploy_prod` script to deploy all contracts in the correct sequence. When working on your own smart contracts, make sure to update this script.

For all available options run:

Expand Down

0 comments on commit 44298a8

Please sign in to comment.