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

Expose prepaid_gas as a precompile #472

Open
mfornet opened this issue Mar 17, 2022 · 0 comments
Open

Expose prepaid_gas as a precompile #472

mfornet opened this issue Mar 17, 2022 · 0 comments
Assignees
Labels
A-precompiles Area: Issues that relate to the precompiles.

Comments

@mfornet
Copy link
Contributor

mfornet commented Mar 17, 2022

Expose prepaid_gas as a precompile for Aurora contracts in a similar way as it was done for current/predecessor_account_id.

Rationale

We want to support cross contract calls, and in some contexts it is very important to verify that the whole tx will succeed without failing for out of gas. In case there is no gas it is better to fail early. See this discussions for more details: #461, Near-One/rainbow-bridge#726

@mfornet mfornet added the A-precompiles Area: Issues that relate to the precompiles. label Mar 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-precompiles Area: Issues that relate to the precompiles.
Projects
None yet
Development

No branches or pull requests

2 participants