Skip to content

Commit

Permalink
Merge pull request #7 from DeFiCh/bush/listacchis-limit
Browse files Browse the repository at this point in the history
Add pub to limit in AccountHistoryOptions. Allow comparing of AccountHistory.
  • Loading branch information
Bushstar authored Jun 18, 2024
2 parents 90b5058 + 982f616 commit c467524
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
target
Cargo.lock
.vscode
.vscode
.idea
4 changes: 2 additions & 2 deletions json/src/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ pub struct BalanceTransferAccountOptions {
utxos: Option<Vec<UTXO>>,
}

#[derive(Debug, Serialize, Deserialize)]
#[derive(Debug, Serialize, Deserialize, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct AccountHistory {
pub owner: String,
Expand All @@ -116,7 +116,7 @@ pub struct AccountHistoryOptions {
token: Option<String>,
txtype: Option<char>,
txtypes: Option<Vec<char>>,
limit: Option<u64>,
pub limit: Option<u64>,
start: Option<u64>,
including_start: Option<bool>,
txn: Option<u64>,
Expand Down

0 comments on commit c467524

Please sign in to comment.