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
fix: internalize ethers
functionality and remove dependency
#2130
fix: internalize ethers
functionality and remove dependency
#2130
Conversation
* docs: moved wallet based doc tests, from fuel-guage to doc snippets * chore: removed dev script * docs: added wallet doc test to doc snippets * chore: linting * chore: removed redundant test file * chore: update changeset * chore: removed querying-the-chain (already in providers) * chore: removed old doc-snippet * chore: linting * chore: fixing tests for wallet docs snippets * chore: lint * chore: removed doc snippet comments --------- Co-authored-by: Sérgio Torres <[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.
Great work @maschad, another good step towards decoupling from ethers
.
What was the reasoning behind implementing getBytes
? As it looks exactly the same as our own arrayify
?
Thanks! There are some additional parameters included in the function signature for |
IMO that is acceptable here, I'd rather have one point of entry for byte array conversion. I probably would have done the same when we initially internalised |
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.
As discussed, amalgamate the functionality of getBytes
and arrayify
.
Thanks @danielbate I've updated in 69bf67a |
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.
Nice work 💪🏻
Jw, what ethers
deps are left after this?
Thanks 😄 Looks like just |
Coverage Report:
Changed Files:
|
Closes #2153
ethers
is now removed from:account
crypto
As a result there are more
ethers
functions being internalized:ripemd160
pbkdf2
hmac
dataSlice
encodeBase58
decodeBase58
getBytes
This can be merged as a follow up to #2152