set mock runtime AllowMint to correct type

This commit is contained in:
akildemir 2024-10-14 12:54:48 +03:00
parent 7c60baaff7
commit b0f946f471
2 changed files with 11 additions and 1 deletions

View file

@ -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 {

View file

@ -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);