Also runs `cargo update` and moves where we install the wasm toolchain in the
Dockerfile for better caching properties.
This commit is contained in:
Luke Parker
2023-10-23 00:33:38 -04:00
parent fd1826cca9
commit fbf51e53ec
12 changed files with 250 additions and 293 deletions

View File

@@ -18,10 +18,10 @@ use serai_client::{
};
mod common;
use common::{serai, in_instructions::provide_batch};
use common::in_instructions::provide_batch;
serai_test!(
async fn publish_batch() {
publish_batch: (|serai: Serai| async move {
let network = NetworkId::Bitcoin;
let id = 0;
@@ -45,9 +45,8 @@ serai_test!(
}],
};
let block = provide_batch(batch.clone()).await;
let block = provide_batch(&serai, batch.clone()).await;
let serai = serai().await;
let serai = serai.as_of(block);
{
let serai = serai.in_instructions();
@@ -71,5 +70,5 @@ serai_test!(
);
assert_eq!(serai.coin_supply(coin).await.unwrap(), amount);
assert_eq!(serai.coin_balance(coin, address).await.unwrap(), amount);
}
})
);