File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
sdk-transaction/src/main/java/org/fisco/bcos/sdk/transaction/codec/decode Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -87,10 +87,14 @@ public TransactionResponse decodeReceiptWithoutValues(
8787 String abi , TransactionReceipt transactionReceipt )
8888 throws TransactionException , IOException , ABICodecException {
8989 TransactionResponse response = decodeReceiptStatus (transactionReceipt );
90- String events = JsonUtils .toJson (decodeEvents (abi , transactionReceipt .getLogs ()));
9190 response .setTransactionReceipt (transactionReceipt );
92- response .setEvents (events );
9391 response .setContractAddress (transactionReceipt .getContractAddress ());
92+ // the exception transaction
93+ if (!transactionReceipt .getStatus ().equals ("0x0" )) {
94+ return response ;
95+ }
96+ String events = JsonUtils .toJson (decodeEvents (abi , transactionReceipt .getLogs ()));
97+ response .setEvents (events );
9498 return response ;
9599 }
96100
You can’t perform that action at this time.
0 commit comments