lazer/iota: Mainnet deploy#3921
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| { | ||
| "chain": "iota_mainnet", | ||
| "stateId": "0x7fa7eb76e4c840102d2a57589b658c44ac506847f972c6fdacdf824cb8f53cb4", | ||
| "type": "IotaWormholeContract" | ||
| } |
There was a problem hiding this comment.
🔍 Second iota_mainnet wormhole entry does not collide with existing one
The PR adds a second iota_mainnet IotaWormholeContract entry (contract_manager/src/store/contracts/IotaWormholeContracts.json:17-21) alongside the existing one. The store keys contracts by getId() which combines chain and stateId (contract_manager/src/core/contracts/iota.ts:411-413), so the two entries have distinct IDs and won't trigger the Multiple contracts with id error in contract_manager/src/node/utils/store.ts:246-251. This mirrors the pre-existing pattern where iota_testnet already has two entries. No collision, but reviewers should confirm that consumers looking up a wormhole contract by chain (rather than by full id) handle multiple iota_mainnet entries as intended.
Was this helpful? React with 👍 or 👎 to provide feedback.
Summary
Rationale
How has this been tested?