Skip to content
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

Enrich deploy method and contract's metadata with optional gas limit and gas price hint for free transactions #357

Open
miloszm opened this issue May 1, 2024 · 0 comments
Assignees
Labels
team:Core Low Level Core Development Team (Rust) type:feature implementing a new feature

Comments

@miloszm
Copy link
Contributor

miloszm commented May 1, 2024

Summary

In order to be able to execute deposit-free free transactions, we need to assume some gas limit and some gas price hint, which are normally, in paid transactions, given by the user. Block generator needs to be able to obtain gas limit and to calculate gas price from a price hint (a ratio to the average gas price).

Possible solution design or implementation

Deploy method needs to accept optional arguments for gas limit and gas price hint and store them in contract's metadata, along with contract's owner.

Additional context

This is part of Economic Protocol scenario 3 implementation, related to issues #350 and #353.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team:Core Low Level Core Development Team (Rust) type:feature implementing a new feature
Projects
None yet
Development

No branches or pull requests

1 participant