0xMiden / 0xMiden/tutorials

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

未关闭 适合新手
#185 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Rust
星标
18
派生
34
PR 合并指标
30 天内没有已合并 PR

描述

## 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.

贡献指南

打开贡献指南

调研方向

Find the deploy_counter_deterministic.rs script and the counter_contract_increment.rs file in rust-client/src/bin/. Run the deploy script against testnet RPC after the upgrade, verify the address suffix matches devnet, then update the hardcoded address in both the Rust client and any referenced docs or web-client tutorials. Check PR #177 for the pattern to follow for combined network addresses.

由索引模型根据 Issue 内容生成。

评估

技术栈
rust
领域
backend, tooling
Issue 类型
功能
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
描述清楚
新手友好度
65/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。