[pallet-revive] Fix `caller_is_root` return value (#7086)
Closes https://github.com/paritytech/polkadot-sdk/issues/6767.
The return type of the host function `caller_is_root` was denoted as
`u32` in `pallet_revive_uapi`. This PR fixes the return type to `bool`.
As a drive-by, the PR re-exports `pallet_revive::exec::Origin` to extend
what can be tested externally.
---------
Co-authored-by:
Cyrill Leutwiler <bigcyrill@hotmail.com>
parent
ef064a35
Showing
- prdoc/pr_7086.prdoc 11 additions, 0 deletionsprdoc/pr_7086.prdoc
- substrate/frame/revive/src/exec.rs 1 addition, 1 deletionsubstrate/frame/revive/src/exec.rs
- substrate/frame/revive/src/gas.rs 1 addition, 1 deletionsubstrate/frame/revive/src/gas.rs
- substrate/frame/revive/src/lib.rs 2 additions, 2 deletionssubstrate/frame/revive/src/lib.rs
- substrate/frame/revive/uapi/src/host.rs 1 addition, 1 deletionsubstrate/frame/revive/uapi/src/host.rs
- substrate/frame/revive/uapi/src/host/riscv64.rs 3 additions, 2 deletionssubstrate/frame/revive/uapi/src/host/riscv64.rs
Please register or sign in to comment