-
Notifications
You must be signed in to change notification settings - Fork 8
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
Debug tools for Antelope lib #690
Conversation
✅ Deploy Preview for wallet-develop-mainnet ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for wallet-staging ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
…into 689-debug-tools-for-antelope-lib
…/github.com/telosnetwork/telos-wallet into 689-debug-tools-for-antelope-lib
bde97d8
to
02f9eec
Compare
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.
🔥 great job
Co-authored-by: Ezra Sowden-Guzman <[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.
translation & unused import
Fixes #689 and #745
Description
This PR includes changes for two different issues. First, it incorporates a whole new functionality on the Antlib to provide tools for debugging. Then, there are some code refactors to remove unnecessary dependencies.
Antlib debug tools (#689)
This is the list of features implemented.
trace=true
but now is remembered in localStorage. It remains on if you lose the parameter while you navigate.Dependencies removed (#745)
All proposed changes here were made. I will explain how I replaced those dependencies.
ethers.Contract
creation using thegetAntelope().wallets.getWeb3Provider();
global function to solve the provider.ethers.Signer
if for some reason the developer wants to sign this way.Test scenarios
Let's check the new Library debugging features:
Debug mode (on & off)
Print:
ant.print()
Filtering traces
ant.debug.filterStart()
ant.debug.filterEnd()
Checklist: