You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The highly customizable`deploy.ts` script handles:
126
126
127
127
- Account & chain management (defaults to `//Alice`)
128
128
- Contract instantiation
129
129
- Address export to TypeScript files
130
130
131
131
### Environment
132
132
133
-
<Tabsitems={['.env.dev', '.env.pop']}>
134
-
<Tabvalue=".env.dev">```bash # Local development ACCOUNT_URI="//Alice" ```</Tab>
135
-
<Tabvalue=".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
+
<Callouttitle="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
0 commit comments