Skip to content

Commit

Permalink
return error instead of ignoring
Browse files Browse the repository at this point in the history
  • Loading branch information
AryanGodara committed May 13, 2024
1 parent 10e618a commit 74d0267
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions rpc/types_block_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,16 +267,16 @@ func unmarshalBlockTxn(t interface{}) (BlockTransaction, error) {
case TransactionType_Invoke:
if casted["version"].(string) == "0x0" {
var txn BlockInvokeTxnV0
_ = remarshal(casted, &txn)
return txn, nil
err := remarshal(casted, &txn)
return txn, err
} else if casted["version"].(string) == "0x1" {
var txn BlockInvokeTxnV1
_ = remarshal(casted, &txn)
return txn, nil
err := remarshal(casted, &txn)
return txn, err
} else {
var txn BlockInvokeTxnV3
_ = remarshal(casted, &txn)
return txn, nil
err := remarshal(casted, &txn)
return txn, err
}
case TransactionType_L1Handler:
var txn BlockL1HandlerTxn
Expand Down

0 comments on commit 74d0267

Please sign in to comment.