Skip to content

Commit

Permalink
Merge pull request #1223 from bifrost-finance/modify/buyback_vstoken_…
Browse files Browse the repository at this point in the history
…by_stable_pool

feat: 🎸 modify to ensure_signed
  • Loading branch information
herryho authored Apr 17, 2024
2 parents a6e9af2 + 35fd797 commit 5209901
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pallets/salp/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ mod benchmarks {
None
));
#[extrinsic_call]
_(RawOrigin::Root, 0, KSM, 1_000_000_000u32.into())
_(RawOrigin::Signed(caller), 0, KSM, 1_000_000_000u32.into())
}

#[benchmark]
Expand Down
2 changes: 1 addition & 1 deletion pallets/salp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1287,7 +1287,7 @@ pub mod pallet {
currency_id_in: CurrencyId,
value: BalanceOf<T>,
) -> DispatchResult {
T::EnsureConfirmAsGovernance::ensure_origin(origin)?;
let _who = ensure_signed(origin)?;

let relay_currency_id = T::RelayChainToken::get();
let relay_vtoken_id = T::CurrencyIdConversion::convert_to_vtoken(relay_currency_id)
Expand Down

0 comments on commit 5209901

Please sign in to comment.