packages/core/stellar/src/zip-shared.ts generates a Rust test that asserts client.name() == <contract identifier>. But at runtime client.name() returns the user-supplied token name (stored in the contract via toByteArray(opts.name)), not the contract identifier.
For any input where the token name isn't already a valid Rust identifier (e.g. 'My Token' → identifier MyToken), the generated test fails on cargo test. Existing fixtures use names that happen to be valid identifiers, so the bug isn't caught in CI.
Fix the assertion to compare against the value the contract actually stores, and add a fixture with a non-identifier name to lock it down.
packages/core/stellar/src/zip-shared.tsgenerates a Rust test that assertsclient.name() == <contract identifier>. But at runtimeclient.name()returns the user-supplied token name (stored in the contract viatoByteArray(opts.name)), not the contract identifier.For any input where the token name isn't already a valid Rust identifier (e.g.
'My Token'→ identifierMyToken), the generated test fails oncargo test. Existing fixtures use names that happen to be valid identifiers, so the bug isn't caught in CI.Fix the assertion to compare against the value the contract actually stores, and add a fixture with a non-identifier name to lock it down.