Skip to content

Commit

Permalink
Merge pull request #850 from CodingCattwo/dev155
Browse files Browse the repository at this point in the history
fix pure in v0.6 above version
  • Loading branch information
CodingCattwo authored May 8, 2023
2 parents b9267e7 + 495ddb5 commit e3899a3
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,13 @@ private ABIDefinition getABIDefinition(String abiStr, String functionName) {
throw new FrontException(ConstantCode.IN_FUNCTION_ERROR);
}
// abi only contain one function, so get first one
ABIDefinition function = abiDefinitionList.get(0);
return function;
ABIDefinition abiDefinition = abiDefinitionList.get(0);
if (abiDefinition.getStateMutability().equals("pure")
|| abiDefinition.getStateMutability().equals("constant")
|| abiDefinition.getStateMutability().equals("view")) {
abiDefinition.setConstant(true);
}
return abiDefinition;
}

public Object handleCall(int groupId, String userAddress, String contractAddress,
Expand Down

0 comments on commit e3899a3

Please sign in to comment.