Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e7b7fda

Browse files
author
pythcoiner
committedFeb 24, 2024·
fix tests
1 parent 5846fe3 commit e7b7fda

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed
 

‎gui/src/app/state/receive.rs

+4-6
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,8 @@ mod tests {
284284
daemon::{
285285
client::{Lianad, Request},
286286
model::*,
287-
Daemon,
288287
},
289-
utils::{mock::Daemon as MockDaemon, sandbox::Sandbox},
288+
utils::{mock::Daemon, sandbox::Sandbox},
290289
};
291290

292291
use liana::{descriptors::LianaDescriptor, miniscript::bitcoin::Address};
@@ -301,23 +300,22 @@ mod tests {
301300
Address::from_str("tb1qkldgvljmjpxrjq2ev5qxe8dvhn0dph9q85pwtfkjeanmwdue2akqj4twxj")
302301
.unwrap()
303302
.assume_checked();
304-
let daemon = MockDaemon::new(vec![(
303+
let daemon = Daemon::new(vec![(
305304
Some(json!({"method": "getnewaddress", "params": Option::<Request>::None})),
306305
Ok(json!(GetAddressResult::new(
307306
addr.clone(),
308307
ChildNumber::from_normal_idx(0).unwrap()
309308
))),
310309
)]);
311310

312-
let client = Arc::new(Lianad::new(daemon.run()));
313-
let timestamp = client.get_info().unwrap().timestamp;
314311
let sandbox: Sandbox<ReceivePanel> = Sandbox::new(ReceivePanel::new(
315312
PathBuf::new(),
316313
Arc::new(Wallet::new(
317314
LianaDescriptor::from_str(DESC).unwrap(),
318-
timestamp,
315+
0,
319316
)),
320317
));
318+
let client = Arc::new(Lianad::new(daemon.run()));
321319
let sandbox = sandbox.load(client, &Cache::default()).await;
322320

323321
let panel = sandbox.state();

0 commit comments

Comments
 (0)
Please sign in to comment.