Skip to content

Commit 5160dc3

Browse files
committed
chore(e2e): fixed ci warnings again
Signed-off-by: kaancaglan <caglankaan@gmail.com>
1 parent 86505c9 commit 5160dc3

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

tools/union-test/tests/e2e.rs

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ async fn test_send_vault_success() {
366366

367367
let cw_msg = ucs03_zkgm::msg::ExecuteMsg::Send {
368368
channel_id: src_channel_id.try_into().unwrap(),
369-
timeout_height: 0u64.into(),
369+
timeout_height: 0u64,
370370
timeout_timestamp: voyager_sdk::primitives::Timestamp::from_secs(u32::MAX.into()),
371371
salt: salt_bytes.into(),
372372
instruction: instruction_cosmos.abi_encode_params().into(),
@@ -491,7 +491,7 @@ async fn test_send_packet_from_union_to_evm_and_send_back_unwrap() {
491491

492492
let cw_msg = ucs03_zkgm::msg::ExecuteMsg::Send {
493493
channel_id: src_chain_id.try_into().unwrap(),
494-
timeout_height: 0u64.into(),
494+
timeout_height: 0u64,
495495
timeout_timestamp: voyager_sdk::primitives::Timestamp::from_secs(u32::MAX.into()),
496496
salt: salt_bytes.into(),
497497
instruction: instruction_cosmos.abi_encode_params().into(),
@@ -737,7 +737,7 @@ async fn test_send_packet_from_evm_to_union_and_send_back_unwrap() {
737737

738738
let cw_msg = ucs03_zkgm::msg::ExecuteMsg::Send {
739739
channel_id: src_chain_id.try_into().unwrap(),
740-
timeout_height: 0u64.into(),
740+
timeout_height: 0u64,
741741
timeout_timestamp: voyager_sdk::primitives::Timestamp::from_secs(u32::MAX.into()),
742742
salt: salt_bytes.into(),
743743
instruction: instruction_cosmos.abi_encode_params().into(),
@@ -838,7 +838,7 @@ async fn test_send_packet_from_union_to_evm_get_refund() {
838838
);
839839
let cw_msg = ucs03_zkgm::msg::ExecuteMsg::Send {
840840
channel_id: src_chain_id.try_into().unwrap(),
841-
timeout_height: 0u64.into(),
841+
timeout_height: 0u64,
842842
timeout_timestamp,
843843
salt: salt_bytes.into(),
844844
instruction: instruction_cosmos.abi_encode_params().into(),
@@ -1137,7 +1137,7 @@ async fn test_stake_from_evm_to_union() {
11371137

11381138
let cw_msg = ucs03_zkgm::msg::ExecuteMsg::Send {
11391139
channel_id: pair.src.try_into().unwrap(),
1140-
timeout_height: 0u64.into(),
1140+
timeout_height: 0u64,
11411141
timeout_timestamp: voyager_sdk::primitives::Timestamp::from_secs(u32::MAX.into()),
11421142
salt: salt_bytes.into(),
11431143
instruction: instruction_cosmos.abi_encode_params().into(),
@@ -1359,7 +1359,7 @@ async fn test_stake_from_evm_to_union_and_refund() {
13591359

13601360
let cw_msg = ucs03_zkgm::msg::ExecuteMsg::Send {
13611361
channel_id: pair.src.try_into().unwrap(),
1362-
timeout_height: 0u64.into(),
1362+
timeout_height: 0u64,
13631363
timeout_timestamp: voyager_sdk::primitives::Timestamp::from_secs(u32::MAX.into()),
13641364
salt: salt_bytes.into(),
13651365
instruction: instruction_cosmos.abi_encode_params().into(),
@@ -1595,7 +1595,7 @@ async fn test_stake_and_unstake_from_evm_to_union() {
15951595

15961596
let cw_msg = ucs03_zkgm::msg::ExecuteMsg::Send {
15971597
channel_id: pair.src.try_into().unwrap(),
1598-
timeout_height: 0u64.into(),
1598+
timeout_height: 0u64,
15991599
timeout_timestamp: voyager_sdk::primitives::Timestamp::from_secs(u32::MAX.into()),
16001600
salt: salt_bytes.into(),
16011601
instruction: instruction_cosmos.abi_encode_params().into(),
@@ -1873,7 +1873,7 @@ async fn test_stake_unstake_and_withdraw_from_evm_to_union() {
18731873

18741874
let cw_msg = ucs03_zkgm::msg::ExecuteMsg::Send {
18751875
channel_id: pair.src.try_into().unwrap(),
1876-
timeout_height: 0u64.into(),
1876+
timeout_height: 0u64,
18771877
timeout_timestamp: voyager_sdk::primitives::Timestamp::from_secs(u32::MAX.into()),
18781878
salt: salt_bytes.into(),
18791879
instruction: instruction_cosmos.abi_encode_params().into(),
@@ -2211,7 +2211,7 @@ async fn test_from_evm_to_union_tokenv2_unhappy_only_maker_err() {
22112211

22122212
let cw_msg = ucs03_zkgm::msg::ExecuteMsg::Send {
22132213
channel_id: pair.src.try_into().unwrap(),
2214-
timeout_height: 0u64.into(),
2214+
timeout_height: 0u64,
22152215
timeout_timestamp: voyager_sdk::primitives::Timestamp::from_secs(u32::MAX.into()),
22162216
salt: salt_bytes.into(),
22172217
instruction: instruction_cosmos.abi_encode_params().into(),
@@ -2278,7 +2278,7 @@ async fn test_from_evm_to_union_tokenv2_unhappy_only_maker_err() {
22782278
let proof = proof.unwrap();
22792279

22802280
let recv_packet_msg = MsgPacketRecv {
2281-
packets: packets,
2281+
packets,
22822282
relayerMsgs: vec![vec![].into()],
22832283
relayer: zkgm_deployer_address,
22842284

@@ -2398,7 +2398,7 @@ async fn test_from_evm_to_union_tokenv2_unhappy_errchannelgovernancetokennotset(
23982398

23992399
let cw_msg = ucs03_zkgm::msg::ExecuteMsg::Send {
24002400
channel_id: pair.src.try_into().unwrap(),
2401-
timeout_height: 0u64.into(),
2401+
timeout_height: 0u64,
24022402
timeout_timestamp: voyager_sdk::primitives::Timestamp::from_secs(u32::MAX.into()),
24032403
salt: salt_bytes.into(),
24042404
instruction: instruction_cosmos.abi_encode_params().into(),
@@ -2595,7 +2595,7 @@ async fn test_from_evm_to_union_tokenv2_unhappy_erc20_insufficient_balance() {
25952595

25962596
let cw_msg = ucs03_zkgm::msg::ExecuteMsg::Send {
25972597
channel_id: pair.src.try_into().unwrap(),
2598-
timeout_height: 0u64.into(),
2598+
timeout_height: 0u64,
25992599
timeout_timestamp: voyager_sdk::primitives::Timestamp::from_secs(u32::MAX.into()),
26002600
salt: salt_bytes.into(),
26012601
instruction: instruction_cosmos.abi_encode_params().into(),
@@ -2793,7 +2793,7 @@ async fn test_from_evm_to_union_tokenv2_unhappy_err_invalid_unescrow() {
27932793

27942794
let cw_msg = ucs03_zkgm::msg::ExecuteMsg::Send {
27952795
channel_id: pair.src.try_into().unwrap(),
2796-
timeout_height: 0u64.into(),
2796+
timeout_height: 0u64,
27972797
timeout_timestamp: voyager_sdk::primitives::Timestamp::from_secs(u32::MAX.into()),
27982798
salt: salt_bytes.into(),
27992799
instruction: instruction_cosmos.abi_encode_params().into(),
@@ -2851,7 +2851,7 @@ async fn test_from_evm_to_union_tokenv2_unhappy_err_invalid_unescrow() {
28512851
let mut buf: [u8; 32] = [0u8; 32];
28522852
rand::rng().fill_bytes(&mut buf);
28532853

2854-
let random_token_id: U256 = U256::from_be_bytes(buf).into();
2854+
let random_token_id: U256 = U256::from_be_bytes(buf);
28552855
println!("✅ random_token_id: {:?}", random_token_id);
28562856

28572857
let instruction_from_evm_to_union = InstructionEvm {
@@ -2969,7 +2969,7 @@ async fn test_from_evm_to_union_tokenv2_unhappy_err_cannot_deploy() {
29692969

29702970
let cw_msg = ucs03_zkgm::msg::ExecuteMsg::Send {
29712971
channel_id: pair.src.try_into().unwrap(),
2972-
timeout_height: 0u64.into(),
2972+
timeout_height: 0u64,
29732973
timeout_timestamp: voyager_sdk::primitives::Timestamp::from_secs(u32::MAX.into()),
29742974
salt: salt_bytes.into(),
29752975
instruction: instruction_cosmos.abi_encode_params().into(),
@@ -3150,7 +3150,7 @@ async fn test_from_evm_to_union_batch_err_invalid_forward_instruction() {
31503150
};
31513151
let forward_operand = ucs03_zkgm::com::Forward {
31523152
instruction: inner_token_order_inst,
3153-
timeout_height: 0u64.into(),
3153+
timeout_height: 0u64,
31543154
timeout_timestamp: u32::MAX.into(),
31553155
path: U256::from(0u64).into(),
31563156
}
@@ -3278,7 +3278,7 @@ async fn test_send_vault_unhappy_u_counterparty_is_not_fungible() {
32783278

32793279
let cw_msg = ucs03_zkgm::msg::ExecuteMsg::Send {
32803280
channel_id: src_channel_id.try_into().unwrap(),
3281-
timeout_height: 0u64.into(),
3281+
timeout_height: 0u64,
32823282
timeout_timestamp: voyager_sdk::primitives::Timestamp::from_secs(u32::MAX.into()),
32833283
salt: salt_bytes.into(),
32843284
instruction: instruction_cosmos.abi_encode_params().into(),
@@ -3344,7 +3344,7 @@ async fn test_send_vault_unhappy_u_counterparty_is_not_fungible() {
33443344
let proof = proof.unwrap();
33453345

33463346
let recv_packet_msg = MsgPacketRecv {
3347-
packets: packets,
3347+
packets,
33483348
relayerMsgs: vec![vec![].into()],
33493349
relayer: zkgm_deployer_address,
33503350

@@ -3459,7 +3459,7 @@ async fn test_send_vault_unhappy_u_base_amount_must_cover_quote_amount() {
34593459

34603460
let cw_msg = ucs03_zkgm::msg::ExecuteMsg::Send {
34613461
channel_id: src_channel_id.try_into().unwrap(),
3462-
timeout_height: 0u64.into(),
3462+
timeout_height: 0u64,
34633463
timeout_timestamp: voyager_sdk::primitives::Timestamp::from_secs(u32::MAX.into()),
34643464
salt: salt_bytes.into(),
34653465
instruction: instruction_cosmos.abi_encode_params().into(),
@@ -3525,7 +3525,7 @@ async fn test_send_vault_unhappy_u_base_amount_must_cover_quote_amount() {
35253525
let proof = proof.unwrap();
35263526

35273527
let recv_packet_msg = MsgPacketRecv {
3528-
packets: packets,
3528+
packets,
35293529
relayerMsgs: vec![vec![].into()],
35303530
relayer: zkgm_deployer_address,
35313531

@@ -3640,7 +3640,7 @@ async fn test_send_vault_unhappy_u_fool() {
36403640

36413641
let cw_msg = ucs03_zkgm::msg::ExecuteMsg::Send {
36423642
channel_id: src_channel_id.try_into().unwrap(),
3643-
timeout_height: 0u64.into(),
3643+
timeout_height: 0u64,
36443644
timeout_timestamp: voyager_sdk::primitives::Timestamp::from_secs(u32::MAX.into()),
36453645
salt: salt_bytes.into(),
36463646
instruction: instruction_cosmos.abi_encode_params().into(),
@@ -3706,7 +3706,7 @@ async fn test_send_vault_unhappy_u_fool() {
37063706
let proof = proof.unwrap();
37073707

37083708
let recv_packet_msg = MsgPacketRecv {
3709-
packets: packets,
3709+
packets,
37103710
relayerMsgs: vec![vec![].into()],
37113711
relayer: zkgm_deployer_address,
37123712

0 commit comments

Comments
 (0)