Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO NOT MERGE] feat: Account namespaces #8890

Closed
115 changes: 45 additions & 70 deletions Cargo.lock

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

7 changes: 4 additions & 3 deletions chain/chain/src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -796,9 +796,10 @@ impl ChainStore {
StateChangesRequest::ContractCodeChanges { account_ids } => {
let mut changes = StateChanges::new();
for account_id in account_ids {
let data_key = TrieKey::ContractCode { account_id: account_id.clone() };
let storage_key = KeyForStateChanges::from_trie_key(block_hash, &data_key);
let changes_per_key = storage_key.find_exact_iter(&self.store);
let data_key =
trie_key_parsers::get_raw_prefix_for_contract_code(account_id, &[]);
let storage_key = KeyForStateChanges::from_raw_key(block_hash, &data_key);
let changes_per_key = storage_key.find_iter(&self.store);
changes.extend(StateChanges::from_contract_code_changes(changes_per_key)?);
}
changes
Expand Down
Loading