Skip to content

Commit

Permalink
Small refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Vovchyk committed Nov 2, 2020
1 parent 071426a commit 402cd25
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions rskj-core/src/main/java/co/rsk/rpc/modules/eth/EthModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public Map<String, Object> bridgeState() throws IOException, BlockStoreException
}

public String call(Web3.CallArguments args, String bnOrId) {
String s = null;
String hReturn = null;
try {
BlockResult blockResult = executionBlockRetriever.getExecutionBlock_workaround(bnOrId);
ProgramResult res;
Expand All @@ -125,9 +125,11 @@ public String call(Web3.CallArguments args, String bnOrId) {
throw RskJsonRpcRequestException.transactionRevertedExecutionError();
}

return s = toUnformattedJsonHex(res.getHReturn());
hReturn = toUnformattedJsonHex(res.getHReturn());

return hReturn;
} finally {
LOGGER.debug("eth_call(): {}", s);
LOGGER.debug("eth_call(): {}", hReturn);
}
}

Expand Down

0 comments on commit 402cd25

Please # to comment.