Skip to content

Commit c0e4cda

Browse files
dominiciampogo
authored andcommitted
sdk: call /hello with ledger name
`/hello` defaults to returning information about `ordev` when `ledger_name` is not specified. `ledger_name` will be used to determine a ledger's region from the central stack. Closes #4573 Author: Dominic Dagradi <ddagradi@gmail.com> Date: Tue Aug 7 16:25:56 2018 -0700 upstream:2a2a6be96eb605becc9e8332ddc9470be01e6f9e
1 parent 973caa8 commit c0e4cda

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/connection.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,9 @@ export class Connection {
286286
public async getLedgerUrl() {
287287
const body = (await this.requestRaw(
288288
'https://' + (process.env.SEQADDR || 'api.seq.com') + '/hello',
289-
{},
289+
{
290+
ledger_name: this.ledgerName,
291+
},
290292
{ Credential: this.credential }
291293
)) as any
292294

0 commit comments

Comments
 (0)