Skip to content
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

Unable to submit a tx if balance is low even when it is marked with #[pallet::feeless_if(...)] #6480

Open
gupnik opened this issue Nov 14, 2024 · 2 comments
Assignees

Comments

@gupnik
Copy link
Contributor

gupnik commented Nov 14, 2024

While testing #[pallet::feeless_if(...)] macro: I've discovered that even though the fees are not charged when transaction goes through, I'm not able to submit a transaction if the balance is low (zero):

code: ServerError(1010), message: "Invalid Transaction", data: Some(RawValue("Inability to pay some fees (e.g. account balance too low)"

CC: @ordian

@gupnik gupnik self-assigned this Nov 14, 2024
@gupnik gupnik changed the title Unable to submit a tx is low if balance is low even when it is marked with #[pallet::feeless_if(...)] Unable to submit a tx if balance is low even when it is marked with #[pallet::feeless_if(...)] Nov 14, 2024
@ordian
Copy link
Member

ordian commented Nov 14, 2024

I've noticed that even adding #[pallet::weight((0, Pays::No))] results in the same error, that hints at dropping balance below ED:

the account does not have enough free funds (excluding locked/bonded/reserved) available to cover the transaction fees without dropping the balance below the account existential amount.

@ordian
Copy link
Member

ordian commented Nov 15, 2024

cc #6490, #6489

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

No branches or pull requests

2 participants