Skip to content

Commit

Permalink
Fix missing class_hash field (#327)
Browse files Browse the repository at this point in the history
The sync process doesn't set the class_hash field to deploy
transactions
  • Loading branch information
adriantpaez committed Aug 5, 2022
1 parent 4430423 commit 5961cc2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/sync/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,7 @@ func feederTransactionToDBTransaction(info *feeder.TransactionInfo) types.IsTran
return &types.TransactionDeploy{
Hash: new(felt.Felt).SetHex(info.Transaction.TransactionHash),
ContractAddress: new(felt.Felt).SetHex(info.Transaction.ContractAddress),
ClassHash: new(felt.Felt).SetHex(info.Transaction.ClassHash),
ConstructorCallData: calldata,
}
}
Expand Down

0 comments on commit 5961cc2

Please sign in to comment.