Skip to content

Commit

Permalink
Start regtest node during test. Fix web types.
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptoquick committed Jul 26, 2023
1 parent de8f572 commit 8330219
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/web.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,12 @@ pub mod bitcoin {
set_panic_hook();

future_to_promise(async move {
let change_descriptor = change_descriptor.map(SecretString);

match crate::bitcoin::drain_wallet(
&destination,
&SecretString(descriptor),
&SecretString(change_descriptor),
change_descriptor.as_ref(),
fee_rate,
)
.await
Expand Down
2 changes: 2 additions & 0 deletions tests/rgb/integration/drain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ use crate::rgb::integration::utils::{send_some_coins, ISSUER_MNEMONIC, OWNER_MNE
#[tokio::test]
pub async fn drain() -> Result<()> {
// 1. Initial Setup
start_node().await;

Check failure on line 13 in tests/rgb/integration/drain.rs

View workflow job for this annotation

GitHub Actions / lint

error[E0425]: cannot find function `start_node` in this scope --> tests/rgb/integration/drain.rs:13:5 | 13 | start_node().await; | ^^^^^^^^^^ not found in this scope | help: consider importing this function | 2 + use crate::rgb::integration::utils::start_node; |

let old_keys = save_mnemonic(
&SecretString(ISSUER_MNEMONIC.to_string()),
&SecretString("".to_string()),
Expand Down

0 comments on commit 8330219

Please sign in to comment.