Skip to content

Fix Mantle deployment failures by switching to deployContract#2

Open
Nalon wants to merge 1 commit into
mainfrom
deployment-scripts
Open

Fix Mantle deployment failures by switching to deployContract#2
Nalon wants to merge 1 commit into
mainfrom
deployment-scripts

Conversation

@Nalon

@Nalon Nalon commented Jun 18, 2026

Copy link
Copy Markdown

Summary

  • Replaces sendDeploymentTransaction with viem.deployContract(..., { confirmations }) in all five deployment tasks
  • Fixes TransactionNotFoundError on Mantle Sepolia, where the RPC does not index deployment transactions quickly enough for an immediate getTransaction call
  • Removes unused publicClient setup where it was only needed for the old deployment wait path

Affected tasks

Task Contract
deployToken CrossChainToken
deployTokenPool BurnMintTokenPool
deployERC20LockBox ERC20LockBox
deployLockReleaseTokenPool LockReleaseTokenPool
deployAdvancedPoolHooks AdvancedPoolHooks

All impacted tasks are tested and functioning as expected.

Replace sendDeploymentTransaction + waitForTransactionReceipt with viem.deployContract(..., { confirmations }) across all deployment tasks.

sendDeploymentTransaction calls getTransaction immediately after broadcast, which can raise TransactionNotFoundError on Mantle Sepolia before the RPC indexes the transaction. deployContract polls for the receipt instead.

Updated tasks:
- deployToken
- deployBurnMintTokenPool
- deployERC20LockBox
- deployLockReleaseTokenPool
- deployAdvancedPoolHooks

Post-deployment write transactions (e.g. role grants, authorized caller updates) are unchanged.
@Nalon Nalon requested review from a team as code owners June 18, 2026 21:58
@github-actions

Copy link
Copy Markdown

👋 Nalon, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

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