Skip to content
Commit 0c9f8c76 authored by Benjamin Gallois's avatar Benjamin Gallois Committed by github-actions[bot]
Browse files

Fix treasury benchmarks when no SpendOrigin (#3049)



### Issue

It was impossible to benchmark the pallet_treasury when `SpendOrigin =
frame_support::traits::NeverEnsureOrigin<u64>;` was specified.

### Done

- [x] Use `weight = 0` for all extrinsics that are un-callable with no
`SpendOrigin`.
- [x] Fix benchmarks for extrinsics requiring a Spend even if
`SpendOrigin = frame_support::traits::NeverEnsureOrigin<u64>;`

---------

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
Co-authored-by: default avatarBastian Köcher <[email protected]>
Co-authored-by: default avatarBastian Köcher <[email protected]>
Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
(cherry picked from commit 51f33671)
parent a45d2034
Pipeline #497252 waiting for manual action with stages
in 41 minutes and 37 seconds