Skip to content

[SDK] Allow overriding estimateGas Transaction signature #81

Closed Answered by MexicanAce
hbriese asked this question in SDKs
Discussion options

You must be logged in to vote

Hi @hbriese 👋 !

The way that zkSync Era estimates gas is via a Binary Search algorithm that modifies the gas_limit of the Transaction (See here for code).

Because of this, the signature will never match as expected, and this also leads to things like needing to update the nonce of the transaction while it runs inside of a Sandbox. As you can see in the underlying contract, the signature is never fully verified as the underlying data (e.g. gas_limit) has been modified.

Replies: 9 comments 2 replies

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 MexicanAce
Comment options

You must be logged in to vote
2 replies
@hbriese
Comment options

@MexicanAce
Comment options

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
SDKs
Labels
feature-request Feature request sdk Questions for the SDKs
9 participants