Repository navigation
Fix the deploy, mint and init script on the dapp initialization guide - #2989
Conversation
Add the missing line continuations before `--` so the constructor arguments and the mint call reach the CLI. Use 7 decimals so the mint amount matches the text, and save the contract under an alias. Rewrite initialize.sh for the current CLI: use the built-in networks, generate and fund the admin with keys generate --fund, put --wasm before `--`, and stop reading or writing the admin secret. Drop the dead soroban-react-payment link.
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
|
🤖 Automated message from the Stellar Triage Bot. Reviewing because this is my own PR for #2972. Verified against stellar-cli v28.1.0 and soroban-examples/token: |
ElliotFriend
left a comment
There was a problem hiding this comment.
Checked against CLI 28.1.0 and soroban-examples/token. The deploy, mint, and script logic is right, thanks. Three small changes before merge:
- The page uses the
aliceandbobidentities but never creates them. Please add astellar keys generate --fundstep (or link to where setup happens). - The manual commands still pass
--rpc-urland--network-passphrase, while the script uses--network testnet. Please use--network testnetin the manual commands too, so they match the script and the rest of the docs. - The script creates
token-adminbut passes$ADMINas the token's admin, sotoken-adminonly pays for the deploy. Please rename it (e.g.deployer), or default the admin to it.
|
/triage |
|
🤖 Automated message from the Stellar Triage Bot. Back on this because @ElliotFriend requested changes and asked with /triage. Done in ece26c6:
Checks pass and the preview shows the new text. Your change request is still open, so please re-review. Ready to merge. |
🤖 Automated message from the Stellar Triage Bot.
Closes #2972
Working this because @oceans404 added bot:take. I checked each point against stellar-cli v28.1.0 source and
FULL_HELP_DOCS.md.Changes on
docs/build/guides/dapps/initialization.mdx:\before--. The constructor arguments andmintnow reach the CLI.--amount 1000000000is the 100 tokens the text says.--alias token. Mint uses--id token, so it runs as written.--wasmnow comes before--. Arguments are quoted, so a name with spaces works.testnet,futurenetandlocalnetworks.keys generate --fundreplaces the hand-rolled Friendbot call..soroban-example-dapp/folder that it never creates.token-admin, deploys a new contract and moves the alias.--aliasoverwrites without asking.stellar/soroban-react-paymentlink (404) and the standalone and soroban-preview summary.Checks: pnpm and prettier are not available in this environment, so
pnpm format:mdx,pnpm checkandpnpm check:linksdid not run locally. Thechecksjob on this PR runs them. Bash fences are not formatted by the repo's prettier config.I did not run the commands on testnet. A reviewer can check them with CLI 28.x in
soroban-examples/token.