@@ -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