Skip to content

Commit 5961cc2

Browse files
authored
Fix missing class_hash field (#327)
The sync process doesn't set the class_hash field to deploy transactions
1 parent 4430423 commit 5961cc2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/sync/sync.go

+1
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,7 @@ func feederTransactionToDBTransaction(info *feeder.TransactionInfo) types.IsTran
526526
return &types.TransactionDeploy{
527527
Hash: new(felt.Felt).SetHex(info.Transaction.TransactionHash),
528528
ContractAddress: new(felt.Felt).SetHex(info.Transaction.ContractAddress),
529+
ClassHash: new(felt.Felt).SetHex(info.Transaction.ClassHash),
529530
ConstructorCallData: calldata,
530531
}
531532
}

0 commit comments

Comments
 (0)