File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
chainsql/src/main/java/com/peersafe/chainsql/core Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -408,18 +408,16 @@ JSONObject prepareSigned() {
408
408
}
409
409
mTxJson .put ("Account" ,this .connection .address );
410
410
411
- if (mTxJson .getInt ("OpType" ) == Constant .opType .get ("t_grant" ) &&
411
+ if (mTxJson .has ( "OpType" ) && mTxJson . getInt ("OpType" ) == Constant .opType .get ("t_grant" ) &&
412
412
!this .connection .address .equals (connection .scope )){
413
413
mTxJson .put ("Owner" , connection .scope );
414
414
}
415
415
416
-
417
416
if (this .connection .userCert != null ) {
418
417
String sCert = Util .toHexString (this .connection .userCert );
419
418
mTxJson .put ("Certificate" , sCert );
420
419
}
421
420
422
-
423
421
//for cross chain
424
422
if (crossChainArgs != null ){
425
423
mTxJson .put ("TxnLgrSeq" , crossChainArgs .txnLedgerSeq );
You can’t perform that action at this time.
0 commit comments