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 with permit using ledger with metamask #750

Merged
merged 4 commits into from
Sep 7, 2022

Conversation

xgambitox
Copy link
Contributor

@xgambitox xgambitox commented Sep 7, 2022

Description

Fix invalid signature issue on withdraw from vault with permit when using a ledger hw wallet

Related Issue

MetaMask/eth-ledger-bridge-keyring#152
MetaMask/eth-ledger-bridge-keyring#151
MetaMask/metamask-extension#10240

Motivation and Context

Users should be able to use Metamask + Ledger to withdraw from vaults using permit. Currently the generated signature is invalid due to incorrect V parameter of https://eips.ethereum.org/EIPS/eip-712. We will temporarily reconstruct the signature using Ethers utils with correct V parameter until issue is solved.

How Has This Been Tested?

Tested with a Metamask + Ledger wallet

@xgambitox xgambitox self-assigned this Sep 7, 2022
@aws-amplify-us-east-1
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-750.d27dgpz01hmbvx.amplifyapp.com

@xgambitox xgambitox marked this pull request as ready for review September 7, 2022 06:08
@xgambitox xgambitox changed the title fix: withdraw with permit using ledger fix: withdraw with permit using ledger with metamask Sep 7, 2022
@xgambitox xgambitox merged commit c9706f1 into develop Sep 7, 2022
@xgambitox xgambitox deleted the fix/ledger-permit-withdraw branch September 7, 2022 14:57
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.

1 participant