public class RevertMessageParser
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
static java.lang.String |
REVERT_METHOD |
static Function |
revertFunction |
static java.lang.String |
SM_REVERT_METHOD |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
hasRevertMessage(java.lang.Integer status,
java.lang.String output) |
static boolean |
isOutputStartWithRevertMethod(java.lang.String output)
Does output start with the code of the Revert method, If so, the output may be error message
|
static Tuple2<java.lang.Boolean,java.lang.String> |
tryResolveRevertMessage(java.lang.Integer status,
java.lang.String output) |
static Tuple2<java.lang.Boolean,java.lang.String> |
tryResolveRevertMessage(TransactionReceipt receipt)
parse revert message from receipt
|
public static final java.lang.String REVERT_METHOD
public static final java.lang.String SM_REVERT_METHOD
public static final Function revertFunction
public static boolean isOutputStartWithRevertMethod(java.lang.String output)
output - the string of outputpublic static boolean hasRevertMessage(java.lang.Integer status,
java.lang.String output)
status - the status of the receiptoutput - the output of the receiptpublic static Tuple2<java.lang.Boolean,java.lang.String> tryResolveRevertMessage(java.lang.Integer status, java.lang.String output)
status - the transaction receipt statusoutput - the output of the transaction receiptpublic static Tuple2<java.lang.Boolean,java.lang.String> tryResolveRevertMessage(TransactionReceipt receipt)
receipt - the receipt need to be parsed