Skip to content

Commit

Permalink
More virtual staking cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanfrey committed May 9, 2024
1 parent 180aa1e commit 3fa51d7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions contracts/consumer/virtual-staking/src/multitest.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use cosmwasm_std::{Addr, Decimal, Validator};
use cw_multi_test::no_init;
use sylvia::multitest::Proxy;

use mesh_converter::contract::sv::mt::ConverterContractProxy;
Expand All @@ -16,6 +17,11 @@ type MtApp = cw_multi_test::BasicApp<
>;
type App = sylvia::multitest::App<MtApp>;

fn new_app() -> App {
// Ideally there is a shorter way to do this
App::new(cw_multi_test::custom_app(no_init))
}

struct SetupArgs<'a> {
owner: &'a str,
admin: &'a str,
Expand Down Expand Up @@ -73,7 +79,7 @@ fn setup<'a>(app: &'a App, args: SetupArgs<'a>) -> SetupResponse<'a> {

#[test]
fn instantiation() {
let app = App::default();
let app = new_app();

let owner = "sunny"; // Owner of the staking contract (i. e. the vault contract)
let admin = "theman";
Expand Down Expand Up @@ -116,7 +122,8 @@ fn instantiation() {
#[test]
#[ignore] // FIXME: Enable / finish this test once custom query support is added to sylvia
fn valset_update_sudo() {
let app = App::<MtApp>::default();

let app = new_app();

let owner = "sunny"; // Owner of the staking contract (i. e. the vault contract)
let admin = "theman";
Expand Down

0 comments on commit 3fa51d7

Please sign in to comment.