You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let wallet_db = MemoryWalletDb::new(consensus::Network::TestNetwork,PRUNING_DEPTH);
66
-
letmut w = Wallet::new(
67
-
wallet_db,
68
-
channel.connect().await.unwrap(),
69
-
Network::TestNetwork,
70
-
NonZeroU32::try_from(1).unwrap(),
71
-
)
72
-
.unwrap();
73
-
74
-
let id = w.create_account(SEED,HD_INDEX,BIRTHDAY).await.unwrap();
75
-
tracing::info!("Created account with id: {}", id);
76
-
77
-
tracing::info!("Syncing wallet");
78
-
w.sync(|scanned_to, tip| {
79
-
println!("Scanned: {}/{}", scanned_to, tip);
80
-
})
81
-
.await
82
-
.unwrap();
83
-
84
-
tracing::info!("Syncing complete :)");
85
-
86
-
let summary = w.get_wallet_summary().unwrap();
87
-
tracing::info!("Wallet summary: {:?}", summary);
88
65
89
-
tracing::info!("Proposing a transaction");
90
-
let addr = ZcashAddress::try_from_encoded("utest1z00xn09t4eyeqw9zmjss75sf460423dymgyfjn8rtlj26cffy0yad3eea82xekk24s00wnm38cvyrm2c6x7fxlc0ns4a5j7utgl6lchvglfvl9g9p56fqwzvzvj9d3z6r6ft88j654d7dj0ep6myq5duz9s8x78fdzmtx04d2qn8ydkxr4lfdhlkx9ktrw98gd97dateegrr68vl8xu");
0 commit comments