Skip to content

Commit

Permalink
updated collector to be account id rather than external address
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Frederick committed Nov 19, 2023
1 parent a06afa9 commit cdf3adb
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 @@ -1641,7 +1641,7 @@ pub mod pallet {

#[pallet::call_index(26)]
#[pallet::weight(<T as Config>::WeightInfo::burn_all())]
pub fn burn_all(origin: OriginFor<T>, collector: ExternalAddress) -> DispatchResult {
pub fn burn_all(origin: OriginFor<T>, collector: T::AccountId) -> DispatchResult {
let who = ensure_signed(origin)?;

let balance =
Expand All @@ -1666,7 +1666,7 @@ pub mod pallet {
pub fn burn(
origin: OriginFor<T>,
amount: T::Balance,
collector: ExternalAddress,
collector: T::AccountId,
) -> DispatchResult {
let who = ensure_signed(origin)?;

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 @@ -60,7 +60,7 @@ pub struct BurnId(pub u64);
pub struct BurnInfo<AccountId, Balance> {
pub account: AccountId,
pub balance: Balance,
pub collector: ExternalAddress,
pub collector: AccountId,
}

impl Blockchain {
Expand Down

0 comments on commit cdf3adb

Please sign in to comment.