Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public Map<String, List<List<Object>>> decodeEvents(String abi, List<Logs> logs)
(name, events) -> {
for (ABIDefinition abiDefinition : events) {
ABIObjectFactory abiObjectFactory = new ABIObjectFactory();
ABIObject outputObject = abiObjectFactory.createInputObject(abiDefinition);
ABIObject outputObject = abiObjectFactory.createEventInputObject(abiDefinition);
ABICodecObject abiCodecObject = new ABICodecObject();
for (Logs log : logs) {
String eventSignature =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
import org.fisco.bcos.sdk.transaction.pusher.TransactionPusherService;
import org.fisco.bcos.sdk.transaction.tools.ContractLoader;
import org.fisco.bcos.sdk.transaction.tools.JsonUtils;
import org.fisco.bcos.sdk.utils.Numeric;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down Expand Up @@ -315,7 +316,7 @@ private CallResponse parseCallResponseStatus(Call.CallOutput callOutput)
throws TransactionBaseException {
CallResponse callResponse = new CallResponse();
RetCode retCode = ReceiptParser.parseCallOutput(callOutput, "");
callResponse.setReturnCode(retCode.getCode());
callResponse.setReturnCode(Numeric.decodeQuantity(callOutput.getStatus()).intValue());
callResponse.setReturnMessage(retCode.getMessage());
if (!retCode.getMessage().equals(PrecompiledRetCode.CODE_SUCCESS.getMessage())) {
throw new TransactionBaseException(retCode);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ public int getReturnCode() {
return returnCode;
}

/** @param returnCode the returnCode to set */
/**
* @param returnCode the returnCode to set */
public void setReturnCode(int returnCode) {
this.returnCode = returnCode;
}
Expand Down