Skip to content

Commit 797e15e

Browse files
committed
minor fixes after the rebase
1 parent 124ccfd commit 797e15e

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

rpc/mocks/mock_gateway_handler.go

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rpc/v9/storage.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ func getClassProof(tr core.CommonTrie, classes []felt.Felt) ([]*HashToNode, erro
219219
case *trie.Trie:
220220
classProof := trie.NewProofNodeSet()
221221
for _, class := range classes {
222-
if err := (*trie.Trie)(t).Prove(&class, classProof); err != nil {
222+
if err := t.Prove(&class, classProof); err != nil {
223223
return nil, err
224224
}
225225
}
@@ -261,6 +261,7 @@ func getContractProofWithDeprecatedTrie(
261261
) (*ContractProof, error) {
262262
contractProof := trie.NewProofNodeSet()
263263
contractLeavesData := make([]*LeafData, len(contracts))
264+
264265
for i, contract := range contracts {
265266
if err := tr.Prove(&contract, contractProof); err != nil {
266267
return nil, err
@@ -273,7 +274,6 @@ func getContractProofWithDeprecatedTrie(
273274

274275
nonce, err := state.ContractNonce(&contract)
275276
if err != nil {
276-
277277
if errors.Is(err, db.ErrKeyNotFound) { // contract does not exist, skip getting leaf data
278278
continue
279279
}
@@ -305,6 +305,7 @@ func getContractProofWithTrie(
305305
) (*ContractProof, error) {
306306
contractProof := trie2.NewProofNodeSet()
307307
contractLeavesData := make([]*LeafData, len(contracts))
308+
308309
for i, contract := range contracts {
309310
if err := tr.Prove(&contract, contractProof); err != nil {
310311
return nil, err

0 commit comments

Comments
 (0)