Skip to content

Commit 50b9f05

Browse files
OBorceazarovh
authored andcommitted
Add nonce in API server orders endpoints
1 parent c7feb4b commit 50b9f05

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

api-server/api-server-common/src/storage/impls/in_memory/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,8 @@ impl ApiServerInMemoryStorage {
822822
Ok(())
823823
}
824824

825+
// The NFT owner is updated in both cases when it is spent as an input and transfered or
826+
// created as an output. When the amount is 0 we set the owner to None as in the case of a Burn
825827
fn update_nft_owner(
826828
&mut self,
827829
coin_or_token_id: CoinOrTokenId,

api-server/web-server/src/api/json_helpers.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,5 +514,6 @@ pub fn order_to_json(
514514
"ask_currency": coins_or_token_to_json(&order.ask_currency, chain_config),
515515
"initially_asked": amount_to_json(order.initially_asked, ask_currency_decimals),
516516
"ask_balance": amount_to_json(order.ask_balance, ask_currency_decimals),
517+
"nonce": order.next_nonce,
517518
})
518519
}

0 commit comments

Comments
 (0)