Skip to content

Commit

Permalink
remove yoroi test from wallet-js
Browse files Browse the repository at this point in the history
  • Loading branch information
ecioppettini authored and mzabaluev committed Jul 29, 2021
1 parent 337e276 commit 3882acf
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions bindings/wallet-js/tests/web.rs
Expand Up @@ -9,26 +9,6 @@ use wasm_bindgen_test::*;
wasm_bindgen_test_configure!(run_in_browser);

const BLOCK0: &[u8] = include_bytes!("../../../test-vectors/block0");
const WALLET_VALUE: u64 = 1000000 + 10000 + 10000 + 1 + 100;

/// test to recover a yoroi style address in the test-vectors block0
///
#[wasm_bindgen_test]
fn yoroi1() {
let mut wallet = Wallet::recover("neck bulb teach illegal soul cry monitor claw amount boring provide village rival draft stone", &[]).expect("couldn't recover wallet fully");
let settings = wallet.retrieve_funds(BLOCK0).unwrap();
assert_eq!(wallet.total_value(), WALLET_VALUE);

let conversion = wallet.convert(&settings);

assert_eq!(conversion.num_ignored(), 1);
assert_eq!(conversion.total_value_ignored(), 1);
assert_eq!(conversion.transactions_len(), 1);

let _transaction_bytes = conversion
.transactions_get(0)
.expect("to get the only transaction present in the conversion");
}

#[wasm_bindgen_test]
fn gen_key() {
Expand Down

0 comments on commit 3882acf

Please sign in to comment.