Skip to content

Commit

Permalink
convert hex encloded account_id to AccountId instead of using zeros (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
holtzman authored May 24, 2024
1 parent a604fec commit 68cbb8f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions full-service/src/json_rpc/v2/api/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ where
JsonCommandRequest::create_view_only_account_sync_request { account_id } => {
let unverified_txos = service
.list_txos(
Some(account_id),
Some(account_id.clone()),
None,
Some(TxoStatus::Unverified),
None,
Expand All @@ -605,9 +605,7 @@ where
});
}

// let account_id: AccountId =
// account_id.as_str().try_into().map_err(format_error)?;
let account_id = AccountId::from([0u8; 32]);
let account_id = AccountId::try_from(account_id).map_err(format_error)?;

let txo_sync_request = TxoSyncReq {
account_id,
Expand Down

0 comments on commit 68cbb8f

Please sign in to comment.