-
Notifications
You must be signed in to change notification settings - Fork 346
fix(contract-manager): support networkId serialization in TonChain config #3853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,13 +2,15 @@ | |
| { | ||
| "id": "ton_testnet", | ||
| "mainnet": false, | ||
| "networkId": "0x2", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚩 Verify correctness of TON networkId values (0x2 and 0x27) The JSON config uses Was this helpful? React with 👍 or 👎 to provide feedback. |
||
| "rpcUrl": "https://testnet.toncenter.com/api/v2/jsonRPC#$ENV_TON_TESTNET_API_KEY", | ||
| "type": "TonChain", | ||
| "wormholeChainName": "ton_testnet" | ||
| }, | ||
| { | ||
| "id": "ton_mainnet", | ||
| "mainnet": true, | ||
| "networkId": "0x27", | ||
| "rpcUrl": "https://toncenter.com/api/v2/jsonRPC#$ENV_TON_MAINNET_API_KEY", | ||
| "type": "TonChain", | ||
| "wormholeChainName": "ton_mainnet" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚩 networkId field is added but never consumed by any TonChain logic
The new
networkIdfield (contract_manager/src/core/chains.ts:1522) is stored and serialized/deserialized but is never referenced by any method inTonChainor in any TON contract code (contract_manager/src/core/contracts/ton.ts). By contrast,NearChainuses itsnetworkIdingetNearAccount()atcontract_manager/src/core/chains.ts:1698andcontract_manager/src/core/chains.ts:1702. This isn't a bug — the commit message says "add missing networkId serialization" suggesting the field is needed for data completeness or future use — but it's worth confirming the intended consumer exists or is planned.Was this helpful? React with 👍 or 👎 to provide feedback.