Skip to content

Commit 1226fa6

Browse files
committed
fix bug RR-2199
1 parent 031a925 commit 1226fa6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

chainsql/src/main/java/com/peersafe/chainsql/core/Chainsql.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -408,18 +408,16 @@ JSONObject prepareSigned() {
408408
}
409409
mTxJson.put("Account",this.connection.address);
410410

411-
if(mTxJson.getInt("OpType") == Constant.opType.get("t_grant") &&
411+
if(mTxJson.has("OpType") && mTxJson.getInt("OpType") == Constant.opType.get("t_grant") &&
412412
!this.connection.address.equals(connection.scope)){
413413
mTxJson.put("Owner", connection.scope);
414414
}
415415

416-
417416
if (this.connection.userCert != null) {
418417
String sCert = Util.toHexString(this.connection.userCert);
419418
mTxJson.put("Certificate", sCert);
420419
}
421420

422-
423421
//for cross chain
424422
if(crossChainArgs != null){
425423
mTxJson.put("TxnLgrSeq", crossChainArgs.txnLedgerSeq);

0 commit comments

Comments
 (0)