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

fix: Withdraw function is now payable #37

Merged
merged 2 commits into from
Mar 5, 2021
Merged

Conversation

mfornet
Copy link
Contributor

@mfornet mfornet commented Mar 2, 2021

This is necessary so that users need to sign all
withdraw transactions.

This change requires an update on the frontend side.

Fixes: aurora-is-near/rainbow-bridge-frontend#106
Fixes: #28

Test Plan

CI pass

@@ -52,6 +52,7 @@ impl BridgeToken {
self.token.mint(account_id, amount.into());
}

#[payable]

Choose a reason for hiding this comment

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

Should we return back the deposit? We don't need it to keep it

This is necessary so that users need to sign all
withdraw transactions.

This change requires an update on the frontend side.

Test Plan
=========
CI pass
@mfornet mfornet merged commit 1c4a043 into master Mar 5, 2021
@mfornet mfornet deleted the withdraw_as_payable branch April 20, 2021 18:11
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.

Remove withdraw/lock access keys Check contracts are compiled deterministically
2 participants