Skip to content

Commit

Permalink
Fix metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Sluder committed Aug 9, 2024
1 parent 6ccb9f6 commit ac98077
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/requests/split-swap-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export class SplitSwapRequest {
const swapOutTokenName: string = this._swapOutToken === 'lovelace' ? 'ADA' : this._swapOutToken.assetName;
splitSwapTransaction.attachMetadata(MetadataKey.Message, {
msg: [
this._metadata ?? `[${this._dexter.config.metadataMsgBranding}] Split ${swapInTokenName} -> ${swapOutTokenName} Swap`
this._metadata !== '' ? this._metadata : `[${this._dexter.config.metadataMsgBranding}] Split ${swapInTokenName} -> ${swapOutTokenName} Swap`
]
});

Expand Down
2 changes: 1 addition & 1 deletion src/requests/swap-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ export class SwapRequest {
const swapOutTokenName: string = this._swapOutToken === 'lovelace' ? 'ADA' : this._swapOutToken.assetName;
swapTransaction.attachMetadata(MetadataKey.Message, {
msg: [
this._metadata ?? `[${this._dexter.config.metadataMsgBranding}] ${this._liquidityPool.dex} ${swapInTokenName} -> ${swapOutTokenName} Swap`
this._metadata !== '' ? this._metadata : `[${this._dexter.config.metadataMsgBranding}] ${this._liquidityPool.dex} ${swapInTokenName} -> ${swapOutTokenName} Swap`
]
});

Expand Down

0 comments on commit ac98077

Please sign in to comment.