Skip to content

Commit

Permalink
make tests green
Browse files Browse the repository at this point in the history
  • Loading branch information
RGafiyatullin committed Jan 17, 2024
1 parent 9007a9e commit 22350a4
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions state-chain/custom-rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1306,17 +1306,18 @@ mod test {
fn test_environment_serialization() {
let env = RpcEnvironment {
swapping: SwappingEnvironment {
minimum_swap_amounts: HashMap::from([
(ForeignChain::Bitcoin, HashMap::from([(Asset::Btc, 0u32.into())])),
(
ForeignChain::Ethereum,
HashMap::from([
(Asset::Flip, u64::MAX.into()),
(Asset::Usdc, (u64::MAX / 2 - 1).into()),
(Asset::Eth, 0u32.into()),
]),
),
]),
// // XXX: to remove
// minimum_swap_amounts: HashMap::from([
// (ForeignChain::Bitcoin, HashMap::from([(Asset::Btc, 0u32.into())])),
// (
// ForeignChain::Ethereum,
// HashMap::from([
// (Asset::Flip, u64::MAX.into()),
// (Asset::Usdc, (u64::MAX / 2 - 1).into()),
// (Asset::Eth, 0u32.into()),
// ]),
// ),
// ]),
maximum_swap_amounts: HashMap::from([
(ForeignChain::Bitcoin, HashMap::from([(Asset::Btc, Some(0u32.into()))])),
(
Expand Down

0 comments on commit 22350a4

Please sign in to comment.