Skip to content

Commit

Permalink
fix protocol schema check
Browse files Browse the repository at this point in the history
  • Loading branch information
wacban committed Sep 20, 2024
1 parent 49bf9bf commit d1e0656
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/store/src/trie/mem/mem_tries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ impl MemTries {
}

/// Returns an iterator over the memtrie for the given trie root.
pub fn get_iter<'a>(&'a self, trie: &'a Trie) -> Result<STMemTrieIterator, StorageError> {
pub fn get_iter<'a>(&'a self, trie: &'a Trie) -> Result<STMemTrieIterator<'a>, StorageError> {
let root = if trie.root == CryptoHash::default() {
None
} else {
Expand Down
4 changes: 4 additions & 0 deletions tools/protocol-schema-check/res/protocol_schema.toml
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ ReasonForBan = 792112981
Receipt = 2916802703
ReceiptEnum = 3157292228
ReceiptList = 273687817
ReceiptOrStateStoredReceipt = 215600480
ReceiptProof = 1019992812
ReceiptProofResponse = 4034805727
ReceiptV0 = 3604411866
Expand Down Expand Up @@ -216,6 +217,9 @@ StateResponseInfo = 2184941925
StateResponseInfoV1 = 1435664823
StateResponseInfoV2 = 1784931382
StateRootNode = 1865105129
StateStoredReceipt = 3853311293
StateStoredReceiptMetadata = 2895538362
StateStoredReceiptV0 = 4029868827
StateSyncDumpProgress = 2225888613
StorageError = 1838871872
StoredChunkStateTransitionData = 516372819
Expand Down

0 comments on commit d1e0656

Please sign in to comment.