public class RevertMessageParser
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
static Function |
revertFunction |
static java.lang.String |
RevertMethod |
static java.lang.String |
RevertMethodWithHexPrefix |
static java.lang.String |
SMRevertMethod |
static java.lang.String |
SMRevertMethodWithHexPrefix |
| 构造器和说明 |
|---|
RevertMessageParser() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 RevertMethod
public static final java.lang.String RevertMethodWithHexPrefix
public static final java.lang.String SMRevertMethod
public static final java.lang.String SMRevertMethodWithHexPrefix
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