-
Notifications
You must be signed in to change notification settings - Fork 56
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
Luizoamorim/from ilyas browser fixes 2 #670
Conversation
Issue 10I've noticed that the tx in database was not with the L1 transaction hash: So I added this information for the tx in the submitTx function:
Other change was make the url for etherscan flexible in Transaction component. For it I did the following verification:
And then I changed the url in the arrow link in transaction row:
You can see this changes in: Commits on May 17, 2022 |
…d on shadowRoot element
Issue 4The commit e3eabc9 is fixing the issue number 4. This way the button MAX back to work. |
Issue 5 and part of 6The commit 40688d1 is fixing the problems for the deposit and withdraws transfers verification. |
Issue 1 and the rest of 6The last commits have the changes to fix the problems in send modal:
|
Issue 9In commit 40688d1 line 329 I added the restriction for deposit. line 329:
|
Issue 7Was added a new feat in the last commits. If the subimitTx function return true, the user is redirected for transactions page. |
The last commits are solving the hardcoded issue @IlyasRidhuan |
In this PR I'll be fixing some issues from here : https://github.com/EYBlockchain/nightfall_3_private/issues/74 for browser.
Browser issues
Do a verification using the difference of length between l1 hash and l2 hash.
Issue 4 - L2 Bridge page - transact MAX - Doesn't work - console error: Uncaught TypeError: Cannot set properties of null (setting 'value')
Issue 5 - Deposits - can create and send transactions for amounts bigger than my current balance. Can create the commitment successfully, but when sending the tx Metamask will console.log an RPC error - the user won't notice (image attached in comments below). You end up with an 'invalid' commitment.
I think the solution is block this kind of transactions in frontend.
What I saw:
For send transaction is not being verified the address neither the ammount
For withdraw if you input a ammount greater than your balance the modal is opening
For deposit the modal is not opening for 0 ammount or ammount greater than balance, but is not showing any warning.
Issue 7 - E.g. I deposit 1 MATIC, after completing the tx, form is still 'set' to 1 MATIC. Suggestion - re-route users to Transactions page if tx is successful.
Issue 9 - Restrictions in deposits now it shows a message in red under the amount to warn the user but the Transfer button is not disabled, so I can continue with the deposit of a restricted amount.
Issue 10 - In transactions, clicking on arrow takes you to goerli etherscan. In mainnet wallet, this should be mainnet etherscan