Skip to content

Commit

Permalink
fix linter err
Browse files Browse the repository at this point in the history
  • Loading branch information
laruh committed Mar 10, 2024
1 parent 56303c6 commit 032f134
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mm2src/mm2_main/tests/docker_tests/nft_swap_proto_v2_tests.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use super::eth_docker_tests::{eth_coin_with_random_privkey, global_nft_with_random_privkey, nft_swap_contract};
use coins::eth::EthCoin;
use coins::nft::nft_structs::{Chain, ContractType};
use coins::{SendNftMakerPaymentArgs, SwapOps, ToBytes};
use common::{block_on, now_sec};
Expand All @@ -16,7 +17,7 @@ fn send_and_spend_erc721_maker_payment() {
let time_lock = now_sec() - 100;
let taker_pubkey = taker_global_nft.derive_htlc_pubkey(&[]);

let _send_payment_args = SendNftMakerPaymentArgs {
let _send_payment_args: SendNftMakerPaymentArgs<EthCoin> = SendNftMakerPaymentArgs {
time_lock,
taker_secret_hash: &[],
maker_secret_hash: &[],
Expand All @@ -27,6 +28,6 @@ fn send_and_spend_erc721_maker_payment() {
token_id: &BigUint::from(1u32).to_bytes(),
chain: &Chain::Eth.to_bytes(),
contract_type: &ContractType::Erc721.to_bytes(),
swap_contract_address: &Some(nft_swap_contract().as_bytes().into()),
swap_contract_address: nft_swap_contract().as_bytes(),
};
}

0 comments on commit 032f134

Please sign in to comment.