Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: run checkBytecodeHandle on proxy implementation contract in debugMessage #152

Merged
merged 5 commits into from
Dec 16, 2024

Conversation

Xaroz
Copy link
Contributor

@Xaroz Xaroz commented Dec 14, 2024

fixes #150

  • Now runs tryCheckBytecodeHandle only for real contracts
  • Checks if given contract is a proxy, if it is try to get proxy implementation contract
  • When an proxyImplementationContract is returned runs bytecode check for it, otherwise just runs bytecode check for the recipient

@Xaroz Xaroz self-assigned this Dec 14, 2024
Copy link

vercel bot commented Dec 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hyperlane-explorer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 16, 2024 3:50pm

logger.info('Bytecode does not have function matching handle sig');
return {
status: MessageDebugStatus.RecipientNotHandler,
description: `Recipient contract should have handle function of signature: ${HANDLE_FUNCTION_SIG}. Check that recipient is not a proxy. Error: ${errorReason}`,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Check that recipient is not a proxy. bit should be removed now

@Xaroz Xaroz merged commit 6c12183 into main Dec 16, 2024
6 checks passed
@Xaroz Xaroz deleted the xaroz/proxy-implementation-contract branch December 16, 2024 17:28
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.

Investigate proxy checking for bytecode handle check
2 participants