Skip to content

Commit

Permalink
txn.Hash().Marshal()
Browse files Browse the repository at this point in the history
  • Loading branch information
rianhughes committed Nov 1, 2024
1 parent e814915 commit 3d9de48
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions blockchain/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -608,8 +608,7 @@ func blockByHash(txn db.Transaction, hash *felt.Felt) (*core.Block, error) {
func StoreL1HandlerMsgHashes(dbTxn db.Transaction, blockTxns []core.Transaction) error {
for _, txn := range blockTxns {
if l1Handler, ok := (txn).(*core.L1HandlerTransaction); ok {
l1HandlerTxnHashBytes := txn.Hash().Bytes()
err := dbTxn.Set(db.L1HandlerTxnHashByMsgHash.Key(l1Handler.MessageHash()), l1HandlerTxnHashBytes[:])
err := dbTxn.Set(db.L1HandlerTxnHashByMsgHash.Key(l1Handler.MessageHash()), txn.Hash().Marshal())
if err != nil {
return err
}
Expand Down

0 comments on commit 3d9de48

Please sign in to comment.