Skip to content

Commit

Permalink
chore: Merge next
Browse files Browse the repository at this point in the history
  • Loading branch information
igamigo committed Jan 2, 2025
2 parents c7a9313 + 5f13c47 commit d732b42
Show file tree
Hide file tree
Showing 17 changed files with 241 additions and 232 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

### Changes

* Refactored RPC functions and structs to improve code quality (#616).
* [BREAKING] Added support for new two `Felt` account ID (#639).
* [BREAKING] Removed unnecessary methods from `Client` (#631).
* [BREAKING] Use `thiserror` 2.0 to derive errors (#623).
Expand Down
84 changes: 42 additions & 42 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions crates/rust-client/src/accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,26 +164,26 @@ impl<R: FeltRng> Client<R> {
/// Contains account changes to apply to the store.
pub struct AccountUpdates {
/// Updated public accounts.
updated_onchain_accounts: Vec<Account>,
updated_public_accounts: Vec<Account>,
/// Node account hashes that don't match the tracked information.
mismatched_offchain_accounts: Vec<(AccountId, Digest)>,
}

impl AccountUpdates {
/// Creates a new instance of `AccountUpdates`.
pub fn new(
updated_onchain_accounts: Vec<Account>,
updated_public_accounts: Vec<Account>,
mismatched_offchain_accounts: Vec<(AccountId, Digest)>,
) -> Self {
Self {
updated_onchain_accounts,
updated_public_accounts,
mismatched_offchain_accounts,
}
}

/// Returns the updated public accounts.
pub fn updated_onchain_accounts(&self) -> &[Account] {
&self.updated_onchain_accounts
pub fn updated_public_accounts(&self) -> &[Account] {
&self.updated_public_accounts
}

/// Returns the mismatched offchain accounts.
Expand Down
Loading

0 comments on commit d732b42

Please sign in to comment.