mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-01 11:17:56 +00:00
frame_system::remark: Allow any kind of origin (#14260)
* frame_system::remark: Allow any kind of origin There should be no downside in allowing any kind of origin for `remark`. * Fix tests
This commit is contained in:
@@ -414,11 +414,10 @@ pub mod pallet {
|
||||
impl<T: Config> Pallet<T> {
|
||||
/// Make some on-chain remark.
|
||||
///
|
||||
/// - `O(1)`
|
||||
/// Can be executed by every `origin`.
|
||||
#[pallet::call_index(0)]
|
||||
#[pallet::weight(T::SystemWeightInfo::remark(_remark.len() as u32))]
|
||||
pub fn remark(origin: OriginFor<T>, _remark: Vec<u8>) -> DispatchResultWithPostInfo {
|
||||
ensure_signed_or_root(origin)?;
|
||||
pub fn remark(_origin: OriginFor<T>, _remark: Vec<u8>) -> DispatchResultWithPostInfo {
|
||||
Ok(().into())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user