Skip to content

Commit da85d53

Browse files
authored
Merge pull request #37 from algorandfoundation/fix/adjust-default-deploy-settings
fix: make localnet default without mnemonic prompt when running deploy
2 parents fa8c6f4 + 853dbf2 commit da85d53

File tree

4 files changed

+28
-6
lines changed

4 files changed

+28
-6
lines changed

examples/production/.algokit.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,18 @@ artifacts = 'smart_contracts/artifacts'
1616

1717
[project.deploy]
1818
command = "npm run deploy:ci"
19+
20+
[project.deploy.testnet]
1921
environment_secrets = [
2022
"DEPLOYER_MNEMONIC",
2123
"DISPENSER_MNEMONIC",
2224
]
2325

24-
[project.deploy.localnet]
25-
environment_secrets = []
26+
[project.deploy.mainnet]
27+
environment_secrets = [
28+
"DEPLOYER_MNEMONIC",
29+
"DISPENSER_MNEMONIC",
30+
]
2631

2732
[project.run]
2833
# Commands intended for use locally and in CI

examples/starter/.algokit.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,16 @@ artifacts = 'smart_contracts/artifacts'
1616

1717
[project.deploy]
1818
command = "npm run deploy:ci"
19+
20+
[project.deploy.testnet]
1921
environment_secrets = [
2022
"DEPLOYER_MNEMONIC",
2123
]
2224

23-
[project.deploy.localnet]
24-
environment_secrets = []
25+
[project.deploy.mainnet]
26+
environment_secrets = [
27+
"DEPLOYER_MNEMONIC",
28+
]
2529

2630
[project.run]
2731
# Commands intended for use locally and in CI

package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

template_content/.algokit.toml.jinja

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,22 @@ artifacts = 'smart_contracts/artifacts'
1616

1717
[project.deploy]
1818
command = "npm run deploy:ci"
19+
20+
[project.deploy.testnet]
1921
environment_secrets = [
2022
"DEPLOYER_MNEMONIC",
2123
{%- if use_dispenser %}
2224
"DISPENSER_MNEMONIC",
2325
{%- endif %}
2426
]
2527

26-
[project.deploy.localnet]
27-
environment_secrets = []
28+
[project.deploy.mainnet]
29+
environment_secrets = [
30+
"DEPLOYER_MNEMONIC",
31+
{%- if use_dispenser %}
32+
"DISPENSER_MNEMONIC",
33+
{%- endif %}
34+
]
2835

2936
[project.run]
3037
# Commands intended for use locally and in CI

0 commit comments

Comments
 (0)