Skip to content

Commit ba0392a

Browse files
committed
made the transfer history total an Option so it's not required in the schema
1 parent d0bbabf commit ba0392a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/contract.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ pub fn query_transactions<S: Storage, A: Api, Q: Querier>(
263263
let address = deps.api.canonical_address(account).unwrap();
264264
let (txs, total) = get_transfers(&deps.api, &deps.storage, &address, page, page_size)?;
265265

266-
let result = QueryAnswer::TransferHistory { txs, total };
266+
let result = QueryAnswer::TransferHistory { txs, total: Some(total) };
267267
to_binary(&result)
268268
}
269269

src/msg.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ pub enum QueryAnswer {
288288
},
289289
TransferHistory {
290290
txs: Vec<Tx>,
291-
total: u64,
291+
total: Option<u64>,
292292
},
293293

294294
ViewingKeyError {

0 commit comments

Comments
 (0)