Skip to content

Commit 7a94cd5

Browse files
committed
fix: update schemars
1 parent eb5a133 commit 7a94cd5

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

Cargo.lock

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common/src/vault.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ pub struct MarketConfiguration {
6565

6666
impl MarketConfiguration {
6767
pub const fn encoded_size() -> usize {
68-
32 + 1 + 8
68+
16 + 1 + 8
6969
}
7070
}
7171

contract/vault/tests/invariants.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ async fn withdraw_queue_mustnt_have_duplicates() {
5959
}
6060

6161
#[tokio::test]
62-
#[should_panic = "busy"]
62+
#[should_panic = "Invariant: Only one op in flight"]
6363
async fn state_machine_is_locked_when_another_op_is_running() {
6464
setup_test!(
6565
extract(vault, c, vault_curator)

test-utils/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use std::{path::Path, str::FromStr};
22

3+
use crate::controller::vault::{UnifiedVaultController, VaultController};
34
pub use controller::{
45
ft::FtController,
56
market::{MarketController, UnifiedMarketController},
@@ -30,7 +31,6 @@ use templar_common::{
3031
registry::DeployMode,
3132
vault::VaultConfiguration,
3233
};
33-
use crate::controller::vault::{UnifiedVaultController, VaultController};
3434

3535
pub const DEFAULT_COLLATERAL_PRICE_ID: PriceIdentifier = PriceIdentifier(hex_literal::hex!(
3636
"cccccccc232290221461220bd4e2acd1dcdfbc89c84092c93c18bdc7756c1588"
@@ -82,7 +82,7 @@ macro_rules! accounts {
8282
}
8383

8484
#[macro_export]
85-
macro_rules! setup_test {
85+
macro_rules! setup_test_w {
8686
($w:ident extract($($e:ident),*) accounts($($n:ident),*) config($f:expr)) => {
8787
$crate::accounts!($w, $($n),*);
8888
let s = $crate::setup_everything(&$w, $f, |_| {}).await;

0 commit comments

Comments
 (0)