-
Notifications
You must be signed in to change notification settings - Fork 2.6k
PaysFee for DispatchInfo #4165
PaysFee for DispatchInfo #4165
Conversation
Fair and indeed a problem right now that we should fix. I will think a bit about this and maybe and see if I can come up with a more general way of expressing fee logic in |
Needs further test fixing as well. |
@xlc how about this:
Then, whoever calls |
afbcc1b
to
04c4386
Compare
Co-Authored-By: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
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.
just a minor not here and there and then good to go. As mentioned, it won't be the end of the deal and I want to retire SimpleDispatchInfo
soon, which will happen in follow ups.
The only logical difference of this PR is that a weighted operational transaction (we don't have that many of these actually, most FreeOperational
) now pay the length fee as well.
Co-Authored-By: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
This allow more flexible fee logic such as adjust fee based on DispatchClass.
I want to have operational transactions have weight but no fees.