Skip to content

Commit

Permalink
Minimal quick-fix to support the new TRANSFER_SERVER_SEP0024 prop (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
andywer authored Mar 11, 2020
1 parent 754c0fa commit a293635
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/stellar-toml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ export type StellarTomlCurrency = Partial<{
export type StellarToml = Partial<{
CURRENCIES: StellarTomlCurrency[]
TRANSFER_SERVER: string
TRANSFER_SERVER_SEP0024: string
}>
6 changes: 5 additions & 1 deletion src/transfer-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ function fail(message: string): never {
}

function getTransferServerURL(stellarTomlData: StellarToml): string | null {
return stellarTomlData.TRANSFER_SERVER || null
return (
stellarTomlData.TRANSFER_SERVER_SEP0024 ||
stellarTomlData.TRANSFER_SERVER ||
null
)
}

export function TransferServer(
Expand Down

0 comments on commit a293635

Please sign in to comment.