mirror of
https://gitee.com/BDWare/sdk-java
synced 2025-01-09 17:34:19 +00:00
merge
merge ContractRequest from :common
This commit is contained in:
parent
926ef9f437
commit
87e466bd81
@ -138,11 +138,19 @@ public class ContractRequest extends SM2Verifiable
|
||||
"%s|%s|%s%s|%s",
|
||||
(contractDOI != null && contractDOI.length() > 0) ? contractDOI : contractID,
|
||||
action,
|
||||
arg,
|
||||
parseArg(),
|
||||
gasLimit > 0 ? "|" + gasLimit : "",
|
||||
requester);
|
||||
}
|
||||
|
||||
private String parseArg() {
|
||||
try {
|
||||
return arg.getAsString();
|
||||
} catch (Exception e) {
|
||||
return arg.toString();
|
||||
}
|
||||
}
|
||||
|
||||
public byte[] toByte() {
|
||||
try {
|
||||
ByteArrayOutputStream out = new ByteArrayOutputStream();
|
||||
|
Loading…
Reference in New Issue
Block a user