-
Notifications
You must be signed in to change notification settings - Fork 667
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 tx origin API #6105
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
bot bench substrate-pallet --pallet=pallet_revive |
@xermicus https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7592845 was started for your command Comment |
@xermicus Command |
/cmd prdoc --audience runtime_dev --bump minor |
bot bench substrate-pallet --pallet=pallet_revive |
@xermicus https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7593264 was started for your command Comment |
…=dev --target_dir=substrate --features=riscv --pallet=pallet_revive
@xermicus Command |
bot fmt |
@xermicus https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7594728 was started for your command Comment |
@xermicus Command |
@@ -206,6 +206,16 @@ pub trait HostFn: private::Sealed { | |||
/// - `output`: A reference to the output data buffer to write the caller address. | |||
fn caller(output: &mut [u8; 20]); | |||
|
|||
/// Stores the origin address (initator of the call stack) into the supplied buffer. | |||
/// | |||
/// If there is no address associated with the origin (e.g. because the origin is root) then |
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.
When does that happen? Should probably point it out here
Implement a syscall to retreive the transaction origin.