Skip to content

fix: align messenger with native factory ABI#700

Draft
legion2002 wants to merge 1 commit into
mainfrom
agent/zone-messenger-factory-abi
Draft

fix: align messenger with native factory ABI#700
legion2002 wants to merge 1 commit into
mainfrom
agent/zone-messenger-factory-abi

Conversation

@legion2002

Copy link
Copy Markdown
Contributor

Updates ZoneMessenger to decode the flattened zones(uint32) return ABI exposed by the TIP-1091 native factory.

The reference IZoneFactory, Solidity factory, and SwapAndDepositRouter use the same getter shape so the repository remains internally consistent. A focused regression test exercises relayMessage() against the flattened payload.

This addresses tempoxyz/tempo#6874 (comment).

The bundled zone dev genesis is regenerated because the factory creation bytecode embeds the messenger creation bytecode.

Validation:

  • FOUNDRY_HARDFORK=cancun forge fmt --check
  • FOUNDRY_HARDFORK=cancun forge build --no-lint
  • FOUNDRY_HARDFORK=cancun forge test --match-contract ZoneMessengerFactoryAbiTest
  • cargo test -p zone-node zone_test_genesis_factory_bytecode_matches_foundry_artifact -- --nocapture
  • git diff --check

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.

1 participant