diff --git a/rpc/types_block_transaction.go b/rpc/types_block_transaction.go index dd186d78..0b0b6d61 100644 --- a/rpc/types_block_transaction.go +++ b/rpc/types_block_transaction.go @@ -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