-
Notifications
You must be signed in to change notification settings - Fork 690
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
AutoRelayer: remove forwards #3287
Conversation
// and there ends up not being enough funds, | ||
// then we will revert this call) | ||
// (Previously needed for reverts, but waiting to remove since this is sensitive code | ||
// and would need a real audit to redeploy) | ||
try |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
correct me if I'm wrong, but executeInstruction should never revert right? Can we not remove the failure case of this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as in, can we just change this into a normal function call rather than an external call
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I think you're right, but was doing the "only remove dead code" pr first like we discussed.
tryDecodeExecuteInstructionError can be removed too probably? (since there will be no errors) |
sdk/js/scripts/compileAnchorIdls.js
Outdated
} | ||
if (!fs.existsSync(TS)) { | ||
fs.mkdirSync(TS); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we remove this file's changes from this PR
31d3df1
to
7b7b44a
Compare
2f50b3e
to
7573a10
Compare
Forwards are currently broken due to charging the integrator's gas budget for temporary storage slots that can't be refunded properly to the integrator.
In this pr:
The pr will be followed by a pr allowing cheap cross-chain refunds to make up for the lack of forwards. This will be achieved by not verifying the VAA.