Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardocustodio committed Sep 17, 2024
1 parent 20825e0 commit 8b67c8d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.

This file was deleted.

8 changes: 7 additions & 1 deletion src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,11 +381,17 @@ impl TransactionProcessor {
}: TransactionRequest,
) {
let signer = if external_id.is_some() {
keypair.derive([DeriveJunction::hard(external_id.unwrap())])
keypair.derive([DeriveJunction::soft(external_id.unwrap())])
} else {
keypair
};

tracing::info!(
"Signing transaction #{} with account {}",
request_id,
hex::encode(signer.public_key().0)
);

let block_header = block_subscription.get_block_header();
let res = backoff::future::retry(Self::default_backoff(), || async {
match Self::submit_and_watch(
Expand Down
2 changes: 1 addition & 1 deletion src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ impl DeriveWalletProcessor {
managed: _,
}: DeriveWalletRequest,
) {
let derived_pair = keypair.derive([DeriveJunction::hard(external_id.clone())]);
let derived_pair = keypair.derive([DeriveJunction::soft(external_id.clone())]);
let derived_key = hex::encode(derived_pair.public_key().0);
platform_client::set_wallet_account(
client,
Expand Down
Empty file.

0 comments on commit 8b67c8d

Please sign in to comment.