Skip to content

Commit 1419e58

Browse files
oceans404claude
andcommitted
fix: add missing constructor args for OZ example contracts
The `fungible_allowlist_example` constructor requires `--name` and `--symbol`, and `nft_enumerable_example` requires `--uri`, `--name`, and `--symbol`. Without these, contract client generation fails with "Missing required argument" after successful compilation and deploy. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 7c0d4a7 commit 1419e58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

environments.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ name = "me" # Required. Keys for this account will be saved to `./.stellar/ident
99
default = true # Optional. Whether to use this account as the `--source` for commands that need one.
1010

1111
[development.contracts]
12-
fungible_allowlist_example = { client = true, constructor_args = "--admin me --manager me --initial_supply 1000000000000000000000000" }
13-
nft_enumerable_example = { client = true, constructor_args = "--owner me" }
12+
fungible_allowlist_example = { client = true, constructor_args = "--name ExampleToken --symbol EXT --admin me --manager me --initial_supply 1000000000000000000000000" }
13+
nft_enumerable_example = { client = true, constructor_args = "--uri https://example.com/nft/ --name ExampleNFT --symbol ENFT --owner me" }
1414

1515
# Rather than in one list, TOML allows specifying contracts in their own "sections"
1616
[development.contracts.guess_the_number]

0 commit comments

Comments
 (0)