-
Notifications
You must be signed in to change notification settings - Fork 358
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
Migrate Fee payment to use Fungible Adapter #2624
Conversation
Coverage Report@@ Coverage Diff @@
## master ahmad-transferable-balance-fix +/- ##
==================================================================
+ Coverage 80.90% 80.95% +0.05%
Files 287 287
- Lines 94465 94367 -98
==================================================================
- Hits 76423 76392 -31
- Misses 18042 17975 -67
|
let total_supply_after = Balances::total_issuance(); | ||
assert_eq!(total_supply_before - total_supply_after, 880); | ||
}); | ||
ExtBuilder::default().build().execute_with(|| { |
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.
Looking at this I do wonder if there's an alternative for duplicating tests like these
@@ -271,33 +271,6 @@ export const verifyBlockFees = async ( | |||
} | |||
} | |||
} | |||
// Then search for Deposit event from treasury |
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.
should we be checking these from other event instead? say balances.Deposit
on the treasury address or something?
What does it do?
This PR fixes the transferable balance issue by migrating fee payment from Currency to fungible:
FungibleAdapter
for fee payment inpallet_transaction_payment
instead ofCurrencyAdapter
EVMFungibleAdapter
for fee payment inpallet_evm
instead ofEVMCurrencyAdapter
DealWithFees
implementation to usefungible
traitsWhat important points reviewers should know?
The majority of the failed tests can be attributed to the fact that the new implementation no longer triggers the Treasury deposit event for fees.
Is there something left for follow-up PRs?
What alternative implementations were considered?
Are there relevant PRs or issues in other repositories (Substrate, Polkadot, Frontier, Cumulus)?
What value does it bring to the blockchain users?