Skip to content

Commit

Permalink
refactor(models)!: remove duplicated SubAddressIndex (#55)
Browse files Browse the repository at this point in the history
* refactor(models)!: remove duplicated SubAddressIndex

* docs(changelog): update Unreleased section of changelog
  • Loading branch information
LeoNero authored Jul 8, 2022
1 parent 069f934 commit e509c5b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Removed

- Remove `SubAddressIndex` from `src/models.rs` ([#55](https://github.com/monero-ecosystem/monero-rpc-rs/pull/55))

### Changed

- Change any use of `SubAddressIndex` to `SubaddressIndex` ([#55](https://github.com/monero-ecosystem/monero-rpc-rs/pull/55))

## [0.1.0] - 2022-06-29

### Added
Expand Down
8 changes: 1 addition & 7 deletions src/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,17 +263,11 @@ pub struct IncomingTransfer {
pub global_index: u64,
pub key_image: Option<String>,
pub spent: bool,
pub subaddr_index: SubAddressIndex,
pub subaddr_index: SubaddressIndex,
pub tx_hash: HashString<CryptoNoteHash>,
pub tx_size: Option<u64>,
}

#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct SubAddressIndex {
pub major: u64,
pub minor: u64,
}

/// Argument type of wallet `sweep_all`.
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct SweepAllArgs {
Expand Down

0 comments on commit e509c5b

Please sign in to comment.