@@ -331,6 +331,20 @@ private JSONObject txJson() throws Exception{
331331 json .put ("Raw" , tryEncryptRaw (this .query .toString ()));
332332 json .put ("OpType" ,Validate .toOpType (this .exec ));
333333 json .put ("StrictMode" , this .strictMode );
334+
335+ if (this .autoFillField != null ){
336+ json .put ("AutoFillField" , Util .toHexString (this .autoFillField ));
337+ }
338+ if (this .txsHashFillField != null ){
339+ json .put ("TxsHashFillField" , Util .toHexString (this .txsHashFillField ));
340+ }
341+ if (this .ledgerSeqField != null ){
342+ json .put ("LedgerSeqField" , Util .toHexString (this .ledgerSeqField ));
343+ }
344+ if (this .ledgerTimeField != null ){
345+ json .put ("LedgerTimeField" , Util .toHexString (this .ledgerTimeField ));
346+ }
347+
334348 return json ;
335349 }
336350
@@ -386,19 +400,6 @@ private JSONObject prepareSQLStatement() {
386400 txjson .put ("Certificate" , sCert );
387401 }
388402
389- if (this .autoFillField != null ){
390- txjson .put ("AutoFillField" , Util .toHexString (this .autoFillField ));
391- }
392- if (this .txsHashFillField != null ){
393- txjson .put ("TxsHashFillField" , Util .toHexString (this .txsHashFillField ));
394- }
395- if (this .ledgerSeqField != null ){
396- txjson .put ("LedgerSeqField" , Util .toHexString (this .ledgerSeqField ));
397- }
398- if (this .ledgerTimeField != null ){
399- txjson .put ("LedgerTimeField" , Util .toHexString (this .ledgerTimeField ));
400- }
401-
402403 //for cross chain
403404 if (crossChainArgs != null ){
404405 txjson .put ("TxnLgrSeq" , crossChainArgs .txnLedgerSeq );
0 commit comments