Skip to content

Commit 9d86d6b

Browse files
committed
chore: fmt fix
Signed-off-by: kaancaglan <caglankaan@gmail.com>
1 parent 82f455b commit 9d86d6b

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

tools/union-test/tests/e2e.rs

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,22 @@ use ucs03_zkgm::{
2929
},
3030
};
3131
use union_test::{
32-
channel_provider, cosmos::{self}, evm::{
32+
channel_provider,
33+
cosmos::{self},
34+
evm::{
3335
self,
3436
zkgm::{
3537
IBCPacket, Instruction as InstructionEvm, MsgPacketRecv, UCS03Zkgm, ZkgmPacket, IBC,
3638
},
3739
zkgmerc20::ZkgmERC20,
38-
}, TestContext
40+
},
41+
TestContext,
3942
};
4043
use unionlabs::{
41-
encoding::{Encode, Json}, ethereum::keccak256, ibc::core::channel::channel, primitives::{Bech32, FixedBytes, H160, U256}
44+
encoding::{Encode, Json},
45+
ethereum::keccak256,
46+
ibc::core::channel::channel,
47+
primitives::{Bech32, FixedBytes, H160, U256},
4248
};
4349
use voyager_sdk::primitives::{ChainId, Timestamp};
4450

@@ -445,7 +451,7 @@ async fn test_send_vault_success_with_fee() {
445451

446452
let pair = channel_provider::ChannelPair {
447453
src: 1u32,
448-
dest: 1u32
454+
dest: 1u32,
449455
};
450456

451457
let dst_channel_id = pair.dest;
@@ -469,7 +475,7 @@ async fn test_send_vault_success_with_fee() {
469475
operand: TokenOrderV2 {
470476
sender: cosmos_address_bytes.clone().into(),
471477
receiver: recv_addr.to_vec().into(),
472-
base_token: "muno".as_bytes().into(),
478+
base_token: "muno".as_bytes().into(),
473479
base_amount: "15".parse().unwrap(), // So fee will be 5 and will be minted to relayer
474480
kind: TOKEN_ORDER_KIND_SOLVE,
475481
metadata: metadata.into(),
@@ -516,11 +522,7 @@ async fn test_send_vault_success_with_fee() {
516522

517523
let initial_u_balance = ctx
518524
.dst
519-
.zkgmerc20_balance_of(
520-
H160::from(u_on_eth),
521-
recv_addr.into(),
522-
evm_provider.clone(),
523-
)
525+
.zkgmerc20_balance_of(H160::from(u_on_eth), recv_addr.into(), evm_provider.clone())
524526
.await
525527
.unwrap();
526528

@@ -540,7 +542,6 @@ async fn test_send_vault_success_with_fee() {
540542
.await
541543
.unwrap();
542544

543-
544545
println!("initial U balance on eth: {initial_u_balance}");
545546
println!("initial U balance on union vault: {initial_vault_balance}");
546547
println!("initial balance of relayer: {initial_balance_of_relayer}");
@@ -565,11 +566,7 @@ async fn test_send_vault_success_with_fee() {
565566

566567
let new_u_balance = ctx
567568
.dst
568-
.zkgmerc20_balance_of(
569-
H160::from(u_on_eth),
570-
recv_addr.into(),
571-
evm_provider.clone(),
572-
)
569+
.zkgmerc20_balance_of(H160::from(u_on_eth), recv_addr.into(), evm_provider.clone())
573570
.await
574571
.unwrap();
575572

@@ -595,7 +592,10 @@ async fn test_send_vault_success_with_fee() {
595592

596593
assert_eq!(new_u_balance - initial_u_balance, 10u64.into());
597594
assert_eq!(new_vault_balance - initial_vault_balance, 15u64.into());
598-
assert_eq!(new_balance_of_relayer - initial_balance_of_relayer, 5u64.into());
595+
assert_eq!(
596+
new_balance_of_relayer - initial_balance_of_relayer,
597+
5u64.into()
598+
);
599599
}
600600

601601
async fn test_send_packet_from_union_to_evm_and_send_back_unwrap() {
@@ -3857,7 +3857,7 @@ async fn test_send_vault_unhappy_u_fool() {
38573857
#[tokio::test]
38583858
async fn test_vault_works_with_fee() {
38593859
self::test_send_vault_success_with_fee().await;
3860-
}
3860+
}
38613861

38623862
// // UNHAPPY PATHS
38633863
// #[tokio::test]

0 commit comments

Comments
 (0)