Skip to content

fix: ensure tutorial addresses are deployed on both testnet and devnet#176

Closed
Keinberger wants to merge 1 commit intomainfrom
address-audit
Closed

fix: ensure tutorial addresses are deployed on both testnet and devnet#176
Keinberger wants to merge 1 commit intomainfrom
address-audit

Conversation

@Keinberger
Copy link
Collaborator

@Keinberger Keinberger commented Mar 16, 2026

Before a testnet upgrade, we need to test all tutorials against devnet since testnet won't be running the next release version yet. This requires that any hardcoded account addresses referenced by tutorials exist on both networks.

This PR deploys the counter contract with a deterministic seed on both testnet and devnet and updates all eight references (two in code, six in docs) to the new unified address (mtst1az62d8rhnf00kqp80k3klwy56c6w9gvm). The address works on both networks since AccountId::from_bech32 discards the network prefix and the deterministic seed produces the same AccountId regardless of network.

Also fixes a prose/code mismatch in the oracle tutorial where the inline prefix.suffix values didn't match the MASM file, and adds a Pragma dependency comment to oracle_reader.masm.

Closes #175

- Update counter contract address in code and docs to single
  deployed instance (mtst1az62d8rhnf00kqp80k3klwy56c6w9gvm)
- Fix oracle tutorial prose/code mismatch for prefix.suffix values
- Add Pragma dependency comments to oracle_reader.masm
@Keinberger Keinberger marked this pull request as draft March 16, 2026 11:39
@Keinberger Keinberger changed the title fix: unify counter contract addresses and fix oracle doc mismatch fix: ensure tutorial addresses are deployed on both testnet and devnet Mar 16, 2026
@Keinberger Keinberger marked this pull request as ready for review March 16, 2026 11:44
@Keinberger Keinberger requested a review from mmagician March 16, 2026 11:44
@Keinberger Keinberger closed this Mar 16, 2026
@Keinberger Keinberger deleted the address-audit branch March 16, 2026 11:45
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.

chore: deploy tutorial addresses on both testnet and devnet

1 participant