Skip to content

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

Closed
wants to merge 4 commits into from

Conversation

ermalkaleci
Copy link
Member

Closes #608

@ermalkaleci ermalkaleci requested a review from xlc September 16, 2021 07:54
#[pallet::weight((
T::WeightInfo::authorize_call(),
DispatchClass::Operational,
Pays::No,
Copy link
Member

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Copy link
Member

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

Ok(Pays::No.into())

An error will not return Pays::No.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xlc yes it will

Copy link
Member Author

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 }

@ermalkaleci ermalkaleci deleted the operational_authorize_call branch September 16, 2021 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make trigger_call operational and not paying fees
2 participants