File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
pkg/code/server/transaction Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -428,6 +428,13 @@ func (h *NoPrivacyWithdrawActionHandler) GetFulfillmentMetadata(
428428 NonceValue : cvm .Hash (bh ),
429429 })
430430
431+ var intentOrderingIndexOverride * uint64
432+ var actionOrderingIndexOverride * uint32
433+ if h .isAutoReturn {
434+ intentOrderingIndexOverride = pointer .Uint64 (math .MaxInt64 )
435+ actionOrderingIndexOverride = pointer .Uint32 (0 )
436+ }
437+
431438 return & newFulfillmentMetadata {
432439 requiresClientSignature : true ,
433440 expectedSigner : h .source .VaultOwner ,
@@ -437,8 +444,8 @@ func (h *NoPrivacyWithdrawActionHandler) GetFulfillmentMetadata(
437444 source : h .source .Vault ,
438445 destination : h .destination ,
439446
440- intentOrderingIndexOverride : pointer . Uint64 ( math . MaxInt64 ) ,
441- actionOrderingIndexOverride : pointer . Uint32 ( 0 ) ,
447+ intentOrderingIndexOverride : intentOrderingIndexOverride ,
448+ actionOrderingIndexOverride : actionOrderingIndexOverride ,
442449 fulfillmentOrderingIndex : 0 ,
443450 disableActiveScheduling : h .isAutoReturn ,
444451 }, nil
You can’t perform that action at this time.
0 commit comments