Skip to content
Unverified Commit 51f33671 authored by Benjamin Gallois's avatar Benjamin Gallois Committed by GitHub
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]>
parent ac27c5f5
Pipeline #497075 waiting for manual action with stages
in 43 minutes and 47 seconds