Skip to content

Commit

Permalink
chore: fix some function names in comment (#2301)
Browse files Browse the repository at this point in the history
Signed-off-by: rusttech <[email protected]>
  • Loading branch information
rusttech authored Dec 3, 2024
1 parent 5107487 commit ac22de8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ func (s *State) updateStorageBuffered(contractAddr *felt.Felt, updateDiff map[fe
return bufferedTxn, nil
}

// updateContractStorage applies the diff set to the Trie of the
// updateContractStorages applies the diff set to the Trie of the
// contract at the given address in the given Txn context.
func (s *State) updateContractStorages(stateTrie *trie.Trie, diffs map[felt.Felt]map[felt.Felt]*felt.Felt,
blockNumber uint64, logChanges bool,
Expand Down
2 changes: 1 addition & 1 deletion core/trie/proof.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ func GetProof(key *Key, tri *Trie) ([]ProofNode, error) {
return proofNodes, nil
}

// verifyProof checks if `leafPath` leads from `root` to `leafHash` along the `proofNodes`
// VerifyProof checks if `leafPath` leads from `root` to `leafHash` along the `proofNodes`
// https://github.com/eqlabs/pathfinder/blob/main/crates/merkle-tree/src/tree.rs#L2006
func VerifyProof(root *felt.Felt, key *Key, value *felt.Felt, proofs []ProofNode, hash hashFunc) bool {
expectedHash := root
Expand Down
2 changes: 1 addition & 1 deletion core/trie/trie.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func RunOnTempTriePoseidon(height uint8, do func(*Trie) error) error {
return do(trie)
}

// feltToBitSet Converts a key, given in felt, to a trie.Key which when followed on a [Trie],
// feltToKey Converts a key, given in felt, to a trie.Key which when followed on a [Trie],
// leads to the corresponding [Node]
func (t *Trie) feltToKey(k *felt.Felt) Key {
kBytes := k.Bytes()
Expand Down

0 comments on commit ac22de8

Please sign in to comment.