-
Notifications
You must be signed in to change notification settings - Fork 300
make authorize_call free and operational #609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
authority/src/lib.rs
Outdated
#[pallet::weight(( | ||
T::WeightInfo::authorize_call(), | ||
DispatchClass::Operational, | ||
Pays::No, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not 100% sure if this will still charge fee if this call failed. Can you verify?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know it is safe to do like this
open-runtime-module-library/oracle/src/lib.rs
Line 165 in 69426e8
Ok(Pays::No.into()) |
An error will not return Pays::No.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xlc yes it will
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Post dispatch info will be { post_info: PostDispatchInfo { actual_weight: None, pays_fee: Pays::Yes }
Closes #608