Skip to content

Commit

Permalink
fix incorrect test substate ids
Browse files Browse the repository at this point in the history
  • Loading branch information
sdbondi committed Aug 19, 2024
1 parent d4d1d40 commit 3bbcdea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dan_layer/wallet/sdk/tests/confidential_output_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,13 @@ impl Test {
}

pub fn test_account_address() -> SubstateId {
"component_0dc41b5cc74b36d696c7b140323a40a2f98b71df5d60e5a6bf4c1a07"
"component_0dc41b5cc74b36d696c7b140323a40a2f98b71df5d60e5a6bf4c1a07ffffffff"
.parse()
.unwrap()
}

pub fn test_vault_address() -> SubstateId {
"vault_0dc41b5cc74b36d696c7b140323a40a2f98b71df5d60e5a6bf4c1a07"
"vault_0dc41b5cc74b36d696c7b140323a40a2f98b71df5d60e5a6bf4c1a07ffffffff"
.parse()
.unwrap()
}
Expand Down
3 changes: 2 additions & 1 deletion dan_layer/wallet/storage_sqlite/tests/accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ use tari_engine_types::substate::SubstateId;
fn update_account() {
let db = SqliteWalletStore::try_open(":memory:").unwrap();
db.run_migrations().unwrap();
let address = SubstateId::from_str("component_91bef6af37bfb39b20260275c37a9e8acfc0517127284cd8f05944c8").unwrap();
let address =
SubstateId::from_str("component_91bef6af37bfb39b20260275c37a9e8acfc0517127284cd8f05944c8ffffffff").unwrap();
let mut tx = db.create_write_tx().unwrap();
tx.accounts_insert(Some("test"), &address, 0, false).unwrap();
tx.accounts_update(&address, Some("foo")).unwrap();
Expand Down

0 comments on commit 3bbcdea

Please sign in to comment.