From 74d0267e0b83fa6419467dac49e7c88998611550 Mon Sep 17 00:00:00 2001 From: Aryan Godara Date: Tue, 14 May 2024 04:28:36 +0530 Subject: [PATCH] return error instead of ignoring --- rpc/types_block_transaction.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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