Skip to content

Commit

Permalink
fix address search
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Coats committed Jan 10, 2024
1 parent e67f74a commit 10af7c5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions sdk/tests/client/addresses.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,6 @@ async fn address_generation() {

#[tokio::test]
async fn address_search() -> Result<()> {
let client = Client::builder().finish().await.unwrap();

let secret_manager = MnemonicSecretManager::try_from_mnemonic(generate_mnemonic()?)?;

// Public
Expand All @@ -255,7 +253,11 @@ async fn address_search() -> Result<()> {

// Internal
let address = secret_manager
.generate::<Ed25519Address>(&PublicKeyOptions::new(IOTA_COIN_TYPE).with_address_index(9))
.generate::<Ed25519Address>(
&PublicKeyOptions::new(IOTA_COIN_TYPE)
.with_address_index(9)
.with_internal(true),
)
.await?;

let res = search_address(&secret_manager, IOTA_BECH32_HRP, IOTA_COIN_TYPE, 0, 0..10, &address).await?;
Expand Down

0 comments on commit 10af7c5

Please sign in to comment.