-
Notifications
You must be signed in to change notification settings - Fork 41
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
feat: decode metamask transaction error #353
base: development
Are you sure you want to change the base?
Conversation
|
Looks good. Idk if it's worth it to also log the onchain function name that was called too using the 4byte api .. @rndquu rfc I think if we can make this robust and re-useable @ariesgun then we can open a task and implement it in |
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 QA has some drawbacks:
- Result is shown in the console instead of a toaster
- Error is not in a human readable way
Expected behavior: user sees a toaster with a human friendly error instead of a hex string.
Pls use https://github.com/superical/ethers-decode-error/tree/1.x, I'm sure we can simply fork it and set node version to <20
.
It should be made clear in the spec. |
Unused dependencies (1)
Unlisted dependencies (2)
|
@@ -50,6 +50,7 @@ | |||
"countries-and-timezones": "^3.6.0", | |||
"dotenv": "^16.4.4", | |||
"ethers": "^5.7.2", | |||
"@ariesgun/ethers-decode-error": "^1.1.0", |
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 think we should self host @rndquu
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.
Is it something I can do?
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.
Perhaps we need to get a copy of your repo and then host it. @rndquu @whilefoo @gentlementlegen
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.
Yeah we do.
Also Ana shared QA on another issue that showed the toaster displaying the same error that aries provided as QA, so there is little difference compared to what prod is running rn as far as I can tell.
We should use 4byte and pull the onchain fn names into the console using the selector from the data in the call that fails. Saves having to manually do it while debugging.
For now, waiting for the ubiquite-hosted npm package for |
I opened a PR on that regard here: ubiquity/ethers-decode-error#1 |
I suppose all crypto related software should be under ubiquity org. |
@ariesgun, this task has been idle for a while. Please provide an update. |
Still ongoing |
@ariesgun, this task has been idle for a while. Please provide an update. |
I had implemented our own @ariesgun Did you manually publish it? If so I do not have the |
yes, I did it manually |
@ariesgun, this task has been idle for a while. Please provide an update. |
Still waiting for the package to be uploaded |
@0x4007 You are the one with |
Isn't NPM_TOKEN relevant? The latest release workflow silently failed with |
@rndquu yeah I tried several times: Either we should change the workflow, either manually publish because it seems to compare the version to the main forked repo so we cannot make any modification and publish it. We could copy the publishing action we usually use for our other projects. |
@ariesgun, this task has been idle for a while. Please provide an update. |
Is there anything I can do to finalize this PR? As far as I understand, the package has not been uploaded yet due to token issue? |
Resolves #346