Skip to content

OFT deployment - #1450

Merged
fusmanii merged 6 commits into
faisal/deploy-scriptsfrom
faisal/oft-deployment
Jun 24, 2026
Merged

OFT deployment#1450
fusmanii merged 6 commits into
faisal/deploy-scriptsfrom
faisal/oft-deployment

Conversation

@fusmanii

@fusmanii fusmanii commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Closes ACP-114

fusmanii added 4 commits June 2, 2026 11:22
Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
@fusmanii
fusmanii force-pushed the faisal/deploy-scripts branch from 80917af to b3ae00f Compare June 3, 2026 20:05

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 59ae6f76fd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

// Always use HyperEVM as destination for local testing
uint256 dstChainId = 999;
// Default to HyperEVM (chain 999) when no dstEid is passed; otherwise reverse-map the eid.
uint256 dstChainId = dstEid == 0 ? 999 : _chainIdForEid(dstEid);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Grant direct role for same-chain destinations

When the requested dstEid is the current source chain's endpoint (or when running this script on HyperEVM with the default dstEid == 0), this resolves the destination to the same chain, after which _execute skips LayerZero and SponsoredOFTSrcPeriphery.deposit calls DstOFTHandler.executeDirect. That entrypoint requires DIRECT_CALLER_ROLE, but the new DeployDstHandler broadcast artifacts only grant the donation-box withdrawer role, the multicall whitelist role, and setAuthorizedPeriphery entries; they do not grant the source periphery DIRECT_CALLER_ROLE, so these same-chain deposits revert. Either reject same-chain destinations here or include the role grant for every configured same-chain src/dst pair.

Useful? React with 👍 / 👎.

fusmanii added 2 commits June 9, 2026 20:50
Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
@linear

linear Bot commented Jun 10, 2026

Copy link
Copy Markdown

ACP-114

@fusmanii
fusmanii merged commit 7efddaa into faisal/deploy-scripts Jun 24, 2026
12 checks passed
@fusmanii
fusmanii deleted the faisal/oft-deployment branch June 24, 2026 15:56
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.

2 participants