[pallet-revive] Fix caller_is_root return value#7086
[pallet-revive] Fix caller_is_root return value#7086athei merged 7 commits intoparitytech:masterfrom
caller_is_root return value#7086Conversation
Co-authored-by: Cyrill Leutwiler <[email protected]>
xermicus
left a comment
There was a problem hiding this comment.
Thanks, this seems to be more consistent with other similar API methods.
You'll need to add major prdoc change (I think this constitutes a breaking change even though it only involves unstable methods).
Apparently there are no test fixtures for this.
|
/cmd prdoc --audience runtime_dev --bump major |
|
Sorry, only members of the organization paritytech members can run commands. |
|
@xermicus Can you trigger the command above? |
|
/cmd prdoc --audience runtime_dev --bump major |
|
Command "prdoc --audience runtime_dev --bump major" has failed ❌! See logs here |
|
@cmichi the bot can't push to your branch. Can you add it manually (there is also the |
athei
left a comment
There was a problem hiding this comment.
Should be a minor for pallet-revive (exporting a new type) and a major for pallet-revive-uapi. Just copy and edit prdoc stuff from past PRs to this pallet.
|
Review required! Latest push from author must always be reviewed |
* master: (33 commits) Implement `pallet-asset-rewards` (#3926) [pallet-revive] Add host function `to_account_id` (#7091) [pallet-revive] Remove revive events (#7164) [pallet-revive] Remove debug buffer (#7163) litep2p: Provide partial results to speedup GetRecord queries (#7099) [pallet-revive] Bump asset-hub westend spec version (#7176) Remove 0 as a special case in gas/storage meters (#6890) [pallet-revive] Fix `caller_is_root` return value (#7086) req-resp/litep2p: Reject inbound requests from banned peers (#7158) Add "run to block" tools (#7109) Fix reversed error message in DispatchInfo (#7170) approval-voting: Make importing of duplicate assignment idempotent (#6971) Parachains: Use relay chain slot for velocity measurement (#6825) PRDOC: Document `validate: false` (#7117) xcm: convert properly assets in xcmpayment apis (#7134) CI: Only format umbrella crate during umbrella check (#7139) approval-voting: Fix sending of assignments after restart (#6973) Retry approval on availability failure if the check is still needed (#6807) [pallet-revive-eth-rpc] persist eth transaction hash (#6836) litep2p: Sufix litep2p to the identify agent version for visibility (#7133) ...
Closes paritytech#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 <[email protected]>
Closes #6767.
The return type of the host function
caller_is_rootwas denoted asu32inpallet_revive_uapi. This PR fixes the return type tobool.As a drive-by, the PR re-exports
pallet_revive::exec::Originto extend what can be tested externally.