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

fix(forknet): fix account shard assignment for forknet v2 #12837

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open
Next Next commit
fix delayed receipt parsing
  • Loading branch information
marcelo-gonzalez committed Jan 27, 2025
commit 0765810a25e12976a17127702deae1401f517b77
4 changes: 2 additions & 2 deletions core/primitives/src/state_record.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::account::{AccessKey, Account};
use crate::hash::{hash, CryptoHash};
use crate::receipt::{Receipt, ReceivedData};
use crate::receipt::{Receipt, ReceiptOrStateStoredReceipt, ReceivedData};
use crate::trie_key::trie_key_parsers::{
parse_account_id_from_access_key_key, parse_account_id_from_account_key,
parse_account_id_from_contract_code_key, parse_account_id_from_contract_data_key,
Expand Down Expand Up @@ -100,7 +100,7 @@ impl StateRecord {
None
}
col::DELAYED_RECEIPT_OR_INDICES => {
let receipt = Receipt::try_from_slice(&value)?;
let receipt = ReceiptOrStateStoredReceipt::try_from_slice(&value)?.into_receipt();
Some(StateRecord::DelayedReceipt(Box::new(receipt)))
}
_ => {
Expand Down