Skip to content

Revisit CrossChainReceiverFactory to make it more composable#430

Draft
duncancmt wants to merge 76 commits intomasterfrom
dcmt/crosschainreceiver2
Draft

Revisit CrossChainReceiverFactory to make it more composable#430
duncancmt wants to merge 76 commits intomasterfrom
dcmt/crosschainreceiver2

Conversation

@duncancmt
Copy link
Collaborator

No description provided.

@duncancmt duncancmt requested a review from e1Ru1o November 26, 2025 12:52
@duncancmt duncancmt self-assigned this Nov 26, 2025
Comment on lines +912 to +920
assembly ("memory-safe") {
mstore(callvalue(), 0x2e1a7d4d) // `IWrappedNative.withdraw.selector`
mstore(0x20, toUnwrap)

if iszero(call(gas(), wnative, callvalue(), 0x1c, 0x24, codesize(), callvalue())) {
// this should never happen
revert(codesize(), callvalue())
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

no if to avoid the unwrap if by some reason toUnwrap is zero?

Copy link
Contributor

@e1Ru1o e1Ru1o left a comment

Choose a reason for hiding this comment

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

LGTM

@duncancmt duncancmt force-pushed the master branch 6 times, most recently from b8e3001 to af9b948 Compare January 16, 2026 17:34
@duncancmt duncancmt added the audit changes have been sent for audit and professionally reviewed label Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

audit changes have been sent for audit and professionally reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants