Skip to content

Commit 415b7e8

Browse files
committed
feat(docs): Improve contracts environment section
1 parent 0313066 commit 415b7e8

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

docs/content/docs/learn/contracts.mdx

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,18 +122,24 @@ const contract = sdk.getContract(flipper.evmAddresses[chain])
122122

123123
## Deployment Management
124124

125-
The template `deploy.ts` script handles:
125+
The highly customizable `deploy.ts` script handles:
126126

127127
- Account & chain management (defaults to `//Alice`)
128128
- Contract instantiation
129129
- Address export to TypeScript files
130130

131131
### Environment
132132

133-
<Tabs items={['.env.dev', '.env.pop']}>
134-
<Tab value=".env.dev">```bash # Local development ACCOUNT_URI="//Alice" ```</Tab>
135-
<Tab value=".env.pop">```bash # Pop Network ACCOUNT_URI="your seed phrase here" ```</Tab>
136-
</Tabs>
133+
Depending on the `CHAIN` variable (default: `dev`), the script will read secret environment variables (i.e. `ACCOUNT_URI`) from the `.env.<chain>` file dynamically (e.g. `.env.dev` or `.env.pop`).
134+
135+
This is useful for deploying to different networks from different accounts.
136+
137+
<Callout title="Deployment Gas Fees">
138+
When setting `ACCOUNT_URI` to a custom account while using the local development node, make sure
139+
to fund your account first. – The most convenient way to do this is using the [Polkadot-JS
140+
UI](https://polkadot.js.org/apps/#/explorer). Connect it to your local node and send some funds
141+
from `Alice` via the **Accounts** tab.
142+
</Callout>
137143

138144
### Output Structure
139145

0 commit comments

Comments
 (0)