mirror of
https://github.com/serai-dex/serai.git
synced 2024-12-22 11:39:35 +00:00
set mock runtime AllowMint to correct type
This commit is contained in:
parent
7c60baaff7
commit
b0f946f471
2 changed files with 11 additions and 1 deletions
|
@ -112,7 +112,7 @@ impl grandpa::Config for Test {
|
|||
|
||||
impl coins::Config for Test {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type AllowMint = ();
|
||||
type AllowMint = ValidatorSets;
|
||||
}
|
||||
|
||||
impl coins::Config<coins::Instance1> for Test {
|
||||
|
|
|
@ -443,6 +443,16 @@ fn swap_to_staked_sri_instruction() {
|
|||
// make a pool so that can actually swap
|
||||
make_liquid_pool(coin, 5 * 10u64.pow(coin.decimals()));
|
||||
|
||||
// set the keys to set the TAS for the network
|
||||
ValidatorSets::<Test>::set_keys(
|
||||
RawOrigin::None.into(),
|
||||
coin.network(),
|
||||
Vec::new().try_into().unwrap(),
|
||||
KeyPair(insecure_pair_from_name("random-key").public(), Vec::new().try_into().unwrap()),
|
||||
Signature([0u8; 64]),
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
// make sure account doesn't already have lTs or allocation
|
||||
let current_liq_tokens = LiquidityTokens::balance(POL_ACCOUNT.into(), coin.into()).0;
|
||||
assert_eq!(current_liq_tokens, 0);
|
||||
|
|
Loading…
Reference in a new issue