-
Notifications
You must be signed in to change notification settings - Fork 744
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
[pallet-revive] implement the ref_time_left API #6908
Conversation
Signed-off-by: xermicus <[email protected]>
bot fmt |
@xermicus https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7923861 was started for your command Comment |
@xermicus Command |
/cmd prdoc --audience runtime_dev --bump minor |
/cmd bench --runtime dev --pallet pallet_revive |
Command "bench --runtime dev --pallet pallet_revive" has started 🚀 See logs here |
Command "bench --runtime dev --pallet pallet_revive" has finished ✅ See logs here Subweight results:
Command output:✅ Successful benchmarks of runtimes/pallets: |
Signed-off-by: Cyrill Leutwiler <[email protected]>
@@ -388,6 +388,9 @@ pub trait HostFn: private::Sealed { | |||
/// - `offset`: Byte offset into the returned data | |||
fn return_data_copy(output: &mut &mut [u8], offset: u32); | |||
|
|||
/// Returns the amount of ref_time left. | |||
fn ref_time_left() -> u64; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am thinking, it would be nice to get links to https://www.evm.codes/?fork=cancun#37gas for all these evm apis
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah why not, I will make a followup up for it :)
/cmd bench --runtime dev --pallet pallet_revive |
/cmd bench --runtime dev --pallet pallet_revive |
Command "bench --runtime dev --pallet pallet_revive" has started 🚀 See logs here |
Command "bench --runtime dev --pallet pallet_revive" has started 🚀 See logs here |
Command "bench --runtime dev --pallet pallet_revive" has finished ✅ See logs here Subweight results:
Command output:✅ Successful benchmarks of runtimes/pallets: |
Command "bench --runtime dev --pallet pallet_revive" has failed ❌! See logs here Command output:✅ Successful benchmarks of runtimes/pallets: |
This PR implements the ref_time_left API method. Solidity knows only a single "gas" dimension; Solidity contracts will use this to query the gas left.