-
Notifications
You must be signed in to change notification settings - Fork 804
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
Balances Pallet: Emit events when TI is updated in currency impl #4936
Conversation
User @mittal-parth, please sign the CLA here. |
…ot-sdk into emit-events-currency
Review required! Latest push from author must always be reviewed |
Head branch was pushed to by a user without write access
Sorry for the inconvenience @bkchr 🥲 |
@bkchr Looks like there is an issue with the For the first one, there should be the EventRecord {
phase: Phase::ApplyExtrinsic(1),
event: RuntimeEvent::Balances(pallet_balances::Event::Rescinded {
amount: fees * 2 / 10,
}),
topics: vec![],
}, For the second one, there would 9 events per signed extrinsic because of the extra assert_eq!(
kitchensink_runtime::System::events().len(),
(self.block.extrinsics.len() - 2) * 9 + 2,
); I would like to run these tests locally before pushing just to catch further errors. Is there a way to run them locally? Whenever I run |
@mittal-parth did you try to just compile
Otherwise you maybe not have enough main memory? How much do you have? |
Tried this, same result :(
I have 20GB RAM and 8 GB swap space. |
Is your system freezing because it runs out of memory or what? |
Yes looks like. It starts to hang at 90% memory usage (possibly even more, I force stopped it there). Should I try increasing the swap space? Edit: I tried that. Bumped it from 8 to 30 GB. But even with that much space, when the RAM reached 90% and swap space reached about 50% of its limit, it crashed. |
Your address for a tip please (https://github.com/paritytech/substrate-tip-bot)? Also, please also adjust your PR description. You need to remove the template :) |
Thanks @kianenigma, I've updated the description :) |
Head branch was pushed to by a user without write access
/tip small |
@kianenigma A referendum for a small (20 DOT) tip was successfully submitted for @mittal-parth (5GsLutpKjbzsbTphebs9Uy4YK6gTN47MAaz6njPktidjR5cp on polkadot). |
The referendum has appeared on Polkassembly. |
The CI pipeline was cancelled due to failure one of the required jobs. |
59e3315
…itytech#4936) # Description Previously, in the `Currency` impl, the implementation of `pallet_balances` was not emitting any instances of `Issued` and `Rescinded` events, even though the `Fungible` equivalent was. This PR adds the `Issued` and `Rescinded` events in appropriate places in `impl_currency` along with tests. Closes paritytech#4028 polkadot address: 5GsLutpKjbzsbTphebs9Uy4YK6gTN47MAaz6njPktidjR5cp --------- Co-authored-by: Bastian Köcher <git@kchr.de> Co-authored-by: Bastian Köcher <info@kchr.de>
Description
Previously, in the
Currency
impl, the implementation ofpallet_balances
was not emitting any instances ofIssued
andRescinded
events, even though theFungible
equivalent was.This PR adds the
Issued
andRescinded
events in appropriate places inimpl_currency
along with tests.Closes #4028
polkadot address: 5GsLutpKjbzsbTphebs9Uy4YK6gTN47MAaz6njPktidjR5cp