Skip to content

[ZK Stack] - How to obtain MAX_TRANSACTION_GAS_LIMIT inside a contract? #897

Discussion options

You must be logged in to vote

@CodeSandwich great question! I'm not sure if there is a way to dynamically get this value, but I will confirm. I believe you can rely on this value staying consistent unless there is a governance vote to explicitly approve this change on Era. However for other chains in the Elastic Network, this value may be different depending on their configuration.

Edit: confirmed - there is no way to fetch this from inside a contract.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@CodeSandwich
Comment options

Answer selected by sarahschwartz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ZK Stack
Labels
zk-stack ZK Stack Question
2 participants