Skip to content

Commit

Permalink
fix: compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
polydez committed Dec 2, 2024
1 parent 45ce1b6 commit 3c5d46d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion crates/store/src/db/sql/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ pub fn upsert_accounts(
});
}

let insert_delta = AccountDelta::from(account);
let insert_delta = AccountDelta::from(account.clone());

(Some(Cow::Borrowed(account)), Some(Cow::Owned(insert_delta)))
},
Expand Down
5 changes: 2 additions & 3 deletions crates/store/src/db/tests.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use assert_matches::assert_matches;
use miden_lib::transaction::TransactionKernel;
use miden_node_proto::domain::accounts::AccountSummary;
use miden_objects::{
Expand Down Expand Up @@ -374,7 +373,7 @@ fn test_sql_public_account_details() {

create_block(&mut conn, 2);

let read_delta = sql::select_account_delta(&mut conn, account_id.into(), 1, 2).unwrap();
let read_delta = sql::select_account_delta(&mut conn, account.id().into(), 1, 2).unwrap();

assert_eq!(read_delta, None);

Expand Down Expand Up @@ -422,7 +421,7 @@ fn test_sql_public_account_details() {
assert_eq!(account_read.nonce(), account.nonce());
assert_eq!(account_read.storage(), account.storage());

let read_delta = sql::select_account_delta(&mut conn, account_id.into(), 1, 2).unwrap();
let read_delta = sql::select_account_delta(&mut conn, account.id().into(), 1, 2).unwrap();
assert_eq!(read_delta.as_ref(), Some(&delta2));

create_block(&mut conn, 3);
Expand Down

0 comments on commit 3c5d46d

Please sign in to comment.