Skip to content

[SDK] @TODO: the returned hash did not match #814

Discussion options

You must be logged in to vote

I have found the issue.

EIP712Signer.getSignInput has a bug where it incorrectly fallbacks zero maxPriorityFeePerGas to maxFeePerGas

This produces wrong hash

The issue didn't happen in zksync-ethers@v5 because zero value looked like 0x0 or { "type": "BigNumber", "hex": "0x00" } and so the || operator didn't fall through

In v6, value is now a BigInt 0n and this leads to the bug

I've created a PR with the fix: zksync-sdk/zksync-ethers#228

Replies: 5 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@everdimension
Comment options

@everdimension
Comment options

@everdimension
Comment options

Comment options

You must be logged in to vote
5 replies
@everdimension
Comment options

@sarahschwartz
Comment options

@everdimension
Comment options

@everdimension
Comment options

@danijelTxFusion
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by JackHamer09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
SDKs
Labels
sdk Questions for the SDKs
4 participants