-
Notifications
You must be signed in to change notification settings - Fork 55
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.
I canot stress enough, great detective work Nenad! Your perseverance made it happen
I didn't test it in the app, I only reviewed the code, I give my approval but it should pass the hardest test of all, @elena-zh !
src/custom/hooks/web3.ts
Outdated
localStorage.removeItem(STORAGE_KEY_LAST_PROVIDER) | ||
|
||
if (error) { | ||
throw error |
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.
What happens if the on
function receives an error? u are bubling up, is this intended?
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.
Not sure where I was going with this one but I've changed it to just console log if there is an error otherwise execute rest of the that block code.
Hi @nenadV91 , great changes! mobile.1inch.mp4Could you please take a look at it? |
Some updates: I'm able to sign an order in the mobile app when connected to 1Inch wallet. But again, the app opens 'Connect to 1Inch' wallet page when get back to the Cowswap app after an order signing. Still not able to sign wrap/unwrap/approve token transactions (behavior is the same as on the video above) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Summary
Fixes #1787
This is new PR that has all of the implementation from #1945 and also additional fix for 1Inch wallet
Since that PR was created long time ago I am opening this one instead of having to rebase and merge.