Skip to content

Commit

Permalink
fix: enabled migration for pallet-reward (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
arunjot12 authored Sep 17, 2024
1 parent 4af86ee commit 70668df
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions frame/reward/src/migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ pub mod v1 {
pallet_staking::Nominators::<T>::get(nominator_id.clone())
{
if let Some(validator) = nominations.targets.first() {
NominatorEarningsAccount::<T>::insert(
validator.clone(),
nominator_id.clone(),
balance,
);
NominatorEarningsAccount::<T>::mutate(
validator,
nominator_id.clone(),
|earlier_reward| { *earlier_reward += balance;
})
}
NominatorRewardAccounts::<T>::remove(nominator_id.clone());
}
Expand Down
2 changes: 1 addition & 1 deletion runtime/firechain-mainnet-runtime/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "firechain-mainnet-runtime"
version = "1.1.0"
version = "1.1.1"
authors = ["5ire Team <[email protected]>"]
description = "5ire chain Mainnet runtime"
edition = "2021"
Expand Down
3 changes: 2 additions & 1 deletion runtime/firechain-mainnet-runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// and set impl_version to 0. If only runtime
// implementation changes and behavior does not, then leave spec_version as
// is and increment impl_version.
spec_version: 110,
spec_version: 111,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 2,
Expand Down Expand Up @@ -2561,6 +2561,7 @@ pub type Executive = frame_executive::Executive<
frame_system::ChainContext<Runtime>,
Runtime,
AllPalletsWithSystem,
Migrations
>;

impl fp_self_contained::SelfContainedCall for RuntimeCall {
Expand Down

0 comments on commit 70668df

Please sign in to comment.