Skip to content

Commit

Permalink
Merge pull request #633 from CodingCattwo/dev152
Browse files Browse the repository at this point in the history
update version of scaffold & save log
  • Loading branch information
CodingCattwo authored Jul 19, 2021
2 parents 7d10a4d + 1a8e3a1 commit 77a05e2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ List tomcat = [
]

List scaffold = [
'com.webank.webase:solscaffold:1.0.2-SNAPSHOT',
'com.webank:SmartDev-Scaffold:1.0.0-SNAPSHOT',
'com.webank.webase:solscaffold:1.0.2',
'com.webank:SmartDev-Scaffold:1.0.0.1',
'com.webank:solc-gradle-plugin:1.0.1'
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ public void deleteContract(Long contractId, int groupId) {
* save contract data.
*/
public Contract saveContract(ReqContractSave contractReq) {
log.debug("start saveContract contractReq:{}", JsonUtils.toJSONString(contractReq));
log.info("start saveContract contractReq:{}", JsonUtils.toJSONString(contractReq));
if (contractReq.getContractId() == null) {
// new
return newContract(contractReq);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public RspFile exportProject(ReqProject reqProject) {
// if contract abi is null, not compile
// if abi is [](empty list), compile already
if (contract == null || contract.getContractAbi() == null) {
log.error("exportProject contract not exist or not compiled, id:{}", id);
log.error("exportProject contract not exist or abi empty, id:{}", id);
throw new FrontException(ConstantCode.INVALID_CONTRACT_ID);
}
tbContractList.add(contract);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ private Object handleTransByFunction(int groupId, Client web3j, String signUserI
TransactionDecoderService txDecoder = new TransactionDecoderService(cryptoSuite);
String receiptMsg = txDecoder.decodeReceiptStatus(responseReceipt).getReceiptMessages();
responseReceipt.setMessage(receiptMsg);
CommonUtils.processReceiptHexNumber(responseReceipt);
response = responseReceipt;
log.info("***node cost time***: {}",
Duration.between(nodeStartTime, Instant.now()).toMillis());
Expand Down Expand Up @@ -301,9 +302,9 @@ public static TransactionReceipt execTransaction(Function function,
log.info("execTransaction start startTime:{}", startTime.toEpochMilli());
TransactionReceipt transactionReceipt = commonContract.execTransaction(function);
// cover null message through statusCode
// String receiptMsg = FrontUtils.handleReceiptMsg(transactionReceipt);
String receiptMsg = txDecoder.decodeReceiptStatus(transactionReceipt).getReceiptMessages();
transactionReceipt.setMessage(receiptMsg);
CommonUtils.processReceiptHexNumber(transactionReceipt);
log.info("execTransaction end useTime:{}",
Duration.between(startTime, Instant.now()).toMillis());
return transactionReceipt;
Expand Down

0 comments on commit 77a05e2

Please sign in to comment.