0xMiden / 0xMiden/tutorials

Deploy v0.14 counter contract on testnet once testnet upgrades; update counter_contract_increment address

Đang mở
#185 0 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Rust
Star
18
Fork
34
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

## Context

`counter_contract_increment.rs` (and related docs/web-client tutorials) reference a hardcoded counter contract address that was deployed with v0.14 tools on devnet.

AccountId is derived from the code commitment, which uses the Poseidon2 hash function in v0.14. This means:
- v0.13-deployed contract addresses are invalid for v0.14 clients (procedure hash mismatch)
- A v0.14 contract deployed with the **same deterministic seed** on testnet will produce `mtst1XYZ` (same suffix as `mdev1XYZ`)

## Required action (when testnet upgrades to v0.14)

1. Run `deploy_counter_deterministic.rs` with the same seed against testnet RPC
2. Verify the resulting address suffix matches the devnet deployment
3. Update the hardcoded address in `rust-client/src/bin/counter_contract_increment.rs` to the combined form (following the PR #177 pattern) so it works on both networks
4. Update the same address in any docs/web-client tutorials that reference it

## Note

`counter_contract_fpi.rs` is **not affected** — it deploys in-session and requires no hardcoded address.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.