-
Notifications
You must be signed in to change notification settings - Fork 100
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
Resume transfer erc20 to near #188
Conversation
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.
Thanks! Sorry for the delay.
|
||
if (!logFound) { | ||
console.log(`ERROR log not found for event ${lockedEvent}`); | ||
if (transferLog.finished === undefined) { |
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.
Nice pattern.
transferLog = TransferETHERC20ToNear.loadTransferLog(); | ||
} | ||
if (transferLog.finished === 'approve') { | ||
await TransferETHERC20ToNear.lock({ ethTokenLockerContract, amount, nearReceiverAccount, ethSenderAccount }); |
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.
Is there a reason we are passing args as an object?
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.
Major benefit is no worry about sequence of arguments so it's less error prune when there're many args.
Merge because fail is transfer from erc20 to near, irrevelant to this PR and fixed in #227 |
* resume transfer eth to near * remove timeout for near prover verify dumped proof test Co-authored-by: Maksym Zavershynskyi <[email protected]>
Works locally: