Skip to content

Commit

Permalink
changed balance to amount for burn info
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Frederick committed Nov 20, 2023
1 parent 52eeb57 commit c2c119b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pallets/creditcoin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1653,7 +1653,7 @@ pub mod pallet {

let burn_id = BurnId(u64::from(BurnedFunds::<T>::count()));
let burn_info =
BurnInfo::<T::AccountId, T::Balance> { account: who, balance, collector };
BurnInfo::<T::AccountId, T::Balance> { account: who, amount: balance, collector };

BurnedFunds::<T>::insert(burn_id.clone(), burn_info);

Expand All @@ -1678,7 +1678,7 @@ pub mod pallet {

let burn_id = BurnId(u64::from(BurnedFunds::<T>::count()));
let burn_info =
BurnInfo::<T::AccountId, T::Balance> { account: who, balance: amount, collector };
BurnInfo::<T::AccountId, T::Balance> { account: who, amount, collector };

BurnedFunds::<T>::insert(burn_id.clone(), burn_info);

Expand Down
2 changes: 1 addition & 1 deletion pallets/creditcoin/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pub struct BurnId(pub u64);
#[derive(Clone, Encode, Decode, Eq, PartialEq, RuntimeDebug, TypeInfo, MaxEncodedLen)]
pub struct BurnInfo<AccountId, Balance> {
pub account: AccountId,
pub balance: Balance,
pub amount: Balance,
pub collector: AccountId,
}

Expand Down

0 comments on commit c2c119b

Please sign in to comment.