Skip to content

fix(deps): update stellar-registry to 0.1.2 - #288

Merged
zachfedor merged 1 commit into
stellar-scaffold:mainfrom
ElliotFriend:chore/update-registry-crates
Nov 2, 2026
Merged

zachfedor merged 1 commit into
stellar-scaffold:mainfrom
ElliotFriend:chore/update-registry-crates

Conversation

@ElliotFriend

Copy link
Copy Markdown
Contributor

What

Updates stellar-registry and stellar-registry-macro from 0.1.1 to 0.1.2 (Cargo.lock only).

In 0.1.1, import_asset!("xlm") bakes in the XLM contract address for the network the contract is compiled for, and Cargo doesn't rebuild when that network changes. After a testnet build, the cached Wasm is reused for local, so reset fails:

HostError: Error(Storage, MissingValue)

0.1.2 resolves the address at runtime, so one Wasm works on every network (stellar-registry/cli#97). The macro's generated API is unchanged, so no contract code changes.

Testing

  • cargo test -p guess-the-number passes
  • The built Wasm no longer contains a hard-coded XLM contract address

Refs stellar-registry/cli#97

Asset imports in 0.1.1 baked in the XLM contract address for whichever
network the contract was compiled for, so a cached testnet build made
guess-the-number's `reset` fail on local. 0.1.2 resolves the address at
runtime instead.
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedcargo/​stellar-xdr@​27.0.0 ⏵ 30.0.089 -4100100100100
Updatedcargo/​stellar-registry@​0.1.1 ⏵ 0.1.210010093100100

View full report

@pselle
pselle requested a review from zachfedor November 2, 2026 15:33
@zachfedor
zachfedor merged commit 1dbf5b0 into stellar-scaffold:main Nov 2, 2026
3 checks passed
@zachfedor

Copy link
Copy Markdown
Contributor

Thanks @ElliotFriend!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants