Skip to content

Commit

Permalink
feat: add transfer to treasury
Browse files Browse the repository at this point in the history
  • Loading branch information
Akagi201 committed May 25, 2022
1 parent e914506 commit ce81be5
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions integration-tests/src/treasury.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,25 @@ fn kusama_treasury_propose_spend() {
}

#[test]
fn bifrost_issuance_ksm() {
fn bifrost_issuance_ksm_transfer_to_treasury() {
Bifrost::execute_with(|| {
let treasury_derivative_account_id = bifrost_kusama_runtime::Utility::derivative_account_id(
bifrost_kusama_runtime::TreasuryPalletId::get().into_account(),
0,
);
assert_ok!(bifrost_kusama_runtime::Tokens::set_balance(
bifrost_kusama_runtime::Origin::root(),
sp_runtime::MultiAddress::Id(treasury_derivative_account_id),
sp_runtime::MultiAddress::Id(treasury_derivative_account_id.clone()),
RelayCurrencyId::get(),
50_000_000_000_000_000,
0,
));
assert_ok!(bifrost_kusama_runtime::Tokens::force_transfer(
bifrost_kusama_runtime::Origin::root(),
sp_runtime::MultiAddress::Id(treasury_derivative_account_id),
sp_runtime::MultiAddress::Id(bifrost_kusama_runtime::TreasuryPalletId::get().into_account()),
RelayCurrencyId::get(),
50_000_000_000_000_000,
));
});
}

0 comments on commit ce81be5

Please sign in to comment.