File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ func (p *runtime) markSwapCancelled(ctx context.Context, swapRecord *swap.Record
163163 if err != nil {
164164 return err
165165 }
166- err = p .validateCurrencyMetadataState (destinationCurrencyMetadataRecord , currency .MetadataStateWaitingForInitialPurchase , currency .MetadataStateAvailable )
166+ err = p .validateCurrencyMetadataState (destinationCurrencyMetadataRecord , currency .MetadataStateFundingAuthority , currency .MetadataStateAvailable )
167167 if err != nil {
168168 return err
169169 }
@@ -184,7 +184,7 @@ func (p *runtime) markSwapCancelled(ctx context.Context, swapRecord *swap.Record
184184 }
185185
186186 if ! common .IsCoreMint (toMint ) {
187- if destinationCurrencyMetadataRecord .State == currency .MetadataStateWaitingForInitialPurchase {
187+ if destinationCurrencyMetadataRecord .State == currency .MetadataStateFundingAuthority {
188188 destinationCurrencyMetadataRecord .State = currency .MetadataStateAbandoning
189189 err = p .data .SaveCurrencyMetadata (ctx , destinationCurrencyMetadataRecord )
190190 if err != nil {
You can’t perform that action at this time.
0 commit comments