-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Latest kzg-wasm
Release 0.5.0
Breaks ethers
API
#4841
Comments
kzg-wasm
Release 0.5.0
Breaks ethers
kzg-wasm
Release 0.5.0
Breaks ethers
API
Aiya. I will look into what makes the most sense to do; I suppose just allow that field to be either and pick the one at runtime that exists? |
Sounds reasonable to me. |
Can you please check out the above commit? I've made changes that should fix it (in a backwards compatible way), but it was far more involved than expected. I've tested on |
Left a review here: e5036e7#commitcomment-147131361. The types are not happy yet :) |
Somehow my GitHub UI is broken and I can't reply in the commit so will do here. So there is still the TypeScript compilation error: this is the line: https://github.com/pcaversaccio/raw-tx/blob/main/scripts/sign-eip4844.ts#L66 The underlying type issue is due to: |
I'm wondering if I'm testing it correctly. Installing locally via |
It looks like maybe it didn’t pick up the change? I’ve never used pnpm (I only use npm), but I would expect that behaves the same. I think I know the issue; the dist and lib files don’t get built on branches, so while the Ethers TypeScript source is updated, the generated JavaScript is still the old code. If you clone the library, change to that branch and then |
Can you maybe do a release candidate like |
Sure, that should be doable. :) |
Awesome - so ping me here after the release and I will test again! |
any update here :D? |
I have made pure JS KZG, which is now used in ethereumjs by default. |
@paulmillr thanks! I’m adding a page in the documents to show how to use ethers with your pure-JS implementation too. I’ve also heard it is substantially faster than the WASM version. :) |
(and am adding support along with the other change to accept the API function names you use) |
Ethers Version
6.13.2
Search Terms
kzg-wasm
Describe the Problem
kzg-wasm
released their latest0.5.0
version with the major changeset coming from this PR: ethereumjs/kzg-wasm#17. You can see how the renamed e.g.blobToKzgCommitmentWasm
toblobToKZGCommitmentWasm
and thus if you do something like thattx.kzg = kzg;
, there will be a TypeScript compilation error:Code Snippet
Contract ABI
No response
Errors
No response
Environment
No response
Environment (Other)
No response
The text was updated successfully, but these errors were encountered: