Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Guantong committed Jan 28, 2023
1 parent e0e43c7 commit 2bc644a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion pallet/account-migration/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ pub mod pallet {
if amount >= sum {
<pallet_assets::Pallet<T>>::transfer(
RawOrigin::Signed(to).into(),
KTON_ID,
KTON_ID.into(),
staking_pot,
sum,
)?;
Expand Down
20 changes: 10 additions & 10 deletions precompile/assets/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ where
handle,
Some(owner.clone()).into(),
pallet_assets::Call::<Runtime>::cancel_approval {
id: asset_id,
id: asset_id.into(),
delegate: Runtime::Lookup::unlookup(spender.clone()),
},
)?;
Expand All @@ -156,7 +156,7 @@ where
handle,
Some(owner).into(),
pallet_assets::Call::<Runtime>::approve_transfer {
id: asset_id,
id: asset_id.into(),
delegate: Runtime::Lookup::unlookup(spender),
amount,
},
Expand Down Expand Up @@ -190,7 +190,7 @@ where
handle,
Some(origin).into(),
pallet_assets::Call::<Runtime>::transfer {
id: asset_id,
id: asset_id.into(),
target: Runtime::Lookup::unlookup(to),
amount: value,
},
Expand Down Expand Up @@ -233,7 +233,7 @@ where
handle,
Some(caller).into(),
pallet_assets::Call::<Runtime>::transfer_approved {
id: asset_id,
id: asset_id.into(),
owner: Runtime::Lookup::unlookup(from),
destination: Runtime::Lookup::unlookup(to),
amount: value,
Expand All @@ -244,7 +244,7 @@ where
handle,
Some(from).into(),
pallet_assets::Call::<Runtime>::transfer {
id: asset_id,
id: asset_id.into(),
target: Runtime::Lookup::unlookup(to),
amount: value,
},
Expand Down Expand Up @@ -306,7 +306,7 @@ where
handle,
Some(origin).into(),
pallet_assets::Call::<Runtime>::mint {
id: asset_id,
id: asset_id.into(),
beneficiary: Runtime::Lookup::unlookup(to),
amount: value,
},
Expand Down Expand Up @@ -340,7 +340,7 @@ where
handle,
Some(origin).into(),
pallet_assets::Call::<Runtime>::burn {
id: asset_id,
id: asset_id.into(),
who: Runtime::Lookup::unlookup(from),
amount: value,
},
Expand Down Expand Up @@ -372,7 +372,7 @@ where
handle,
Some(origin).into(),
pallet_assets::Call::<Runtime>::transfer_ownership {
id: asset_id,
id: asset_id.into(),
owner: Runtime::Lookup::unlookup(owner),
},
)?;
Expand All @@ -394,7 +394,7 @@ where
handle,
Some(origin).into(),
pallet_assets::Call::<Runtime>::freeze {
id: asset_id,
id: asset_id.into(),
who: Runtime::Lookup::unlookup(account),
},
)?;
Expand All @@ -416,7 +416,7 @@ where
handle,
Some(origin).into(),
pallet_assets::Call::<Runtime>::thaw {
id: asset_id,
id: asset_id.into(),
who: Runtime::Lookup::unlookup(account),
},
)?;
Expand Down

0 comments on commit 2bc644a

Please sign in to comment.