-
Notifications
You must be signed in to change notification settings - Fork 54
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
dapp-feat: ERC721 TokenPermission feature complere #411
dapp-feat: ERC721 TokenPermission feature complere #411
Conversation
Signed-off-by: Logan Nguyen <[email protected]>
Signed-off-by: Logan Nguyen <[email protected]>
Test Results 17 files + 4 70 suites +8 9m 38s ⏱️ + 2m 3s For more details on these failures, see this check. Results for commit 1bb4b13. ± Comparison against base commit 75647d1. ♻️ This comment has been updated with latest results. |
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.
Looking good.
One suggestion
REJECT: { | ||
// @notice 4001 error code is returned when a metamask wallet request is rejected by the user | ||
// @notice See https://docs.metamask.io/wallet/reference/provider-api/#errors for more information on the error returned by Metamask. | ||
message: '4001', |
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.
This should be code
. See https://eips.ethereum.org/EIPS/eip-1193#provider-errors
message: '4001', | |
code: '4001', |
Signed-off-by: Logan Nguyen <[email protected]>
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.
Unblocking.
Request for a ticket to come back to this
'TRANSFER_EXCEEDS_BALANCE', | ||
]; | ||
|
||
let errorDescription = HEDERA_COMMON_WALLET_REVERT_REASONS.DEFAULT.description; |
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.
Open a ticket to improve the handleAPIError() to map codes to error names.
This works for now but we can simplify later without special cases
* dapp-feat: ERC721 Approve feature complete Signed-off-by: Logan Nguyen <[email protected]> * dapp-update: added HEDERA_COMMON_WALLET_REVERT_REASONS constant object Signed-off-by: Logan Nguyen <[email protected]> * dapp-update: replaced `message` with `code` Signed-off-by: Logan Nguyen <[email protected]> --------- Signed-off-by: Logan Nguyen <[email protected]> Signed-off-by: Mo Shaikjee <[email protected]>
Description:
Related issue(s): #314
Fixes partial #322
UI Demo
Screen.Recording.2023-09-19.at.2.40.06.PM.mov
Notes for reviewer:
Checklist