-
Notifications
You must be signed in to change notification settings - Fork 741
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 gas price API #6954
Conversation
Signed-off-by: Cyrill Leutwiler <[email protected]>
bot fmt |
@xermicus https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7935690 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 |
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.
Nice.
I can make the GAS_PRICE a u64 in a follow up to get rid of all these casting
I mean I could also change it here as drive-by it shouldn't be much to it right? |
might break a few things but if it works go ahead. I will update the value in a follow up PR anyway |
Ah okay, yeah in that case let's not comingle things :) I'll leave it as is then. |
Command "bench --runtime dev --pallet pallet_revive" has finished ✅ See logs here Subweight results:
Command output:✅ Successful benchmarks of runtimes/pallets: |
All GitHub workflows were cancelled due to failure one of the required jobs. |
Signed-off-by: xermicus <[email protected]>
/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: |
This PR implements the EVM gas price syscall API method. Currently this is a compile time constant in revive, but in the EVM it is an opcode. Thus we should provide an opcode for this in the pallet.