Skip to content

Commit

Permalink
Fix API response addressType (#1167)
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-martinez committed Feb 23, 2022
1 parent 8ac4b9b commit 3d46605
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pub(crate) async fn balance_ed25519(
})? {
(Ok(response), ledger_index) => match response {
Some(balance) => Ok(warp::reply::json(&SuccessBody::new(BalanceAddressResponse {
address_type: 1,
address_type: Ed25519Address::KIND,
address: addr.to_string(),
balance: balance.amount(),
dust_allowed: balance.dust_allowed(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ pub(crate) async fn outputs_ed25519(
fetched.truncate(max_results);

Ok(warp::reply::json(&SuccessBody::new(OutputsAddressResponse {
address_type: 1,
address_type: Ed25519Address::KIND,
address: addr.to_string(),
max_results,
count,
Expand Down

0 comments on commit 3d46605

Please sign in to comment.