diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-11-08 07:29:34 +0800 |
---|---|---|
committer | Fred Carlsen <fred@sjelfull.no> | 2018-12-06 19:04:24 +0800 |
commit | 62412b8551d1171844c9cdb30f2b2fe0ab2ba66b (patch) | |
tree | 41d3165343b75a802f3004fae1dcea081ac01a11 /packages/pipeline/src/data_sources | |
parent | 374d51309007ceef8112b5999195e20e49b26c5f (diff) | |
download | dexon-0x-contracts-62412b8551d1171844c9cdb30f2b2fe0ab2ba66b.tar dexon-0x-contracts-62412b8551d1171844c9cdb30f2b2fe0ab2ba66b.tar.gz dexon-0x-contracts-62412b8551d1171844c9cdb30f2b2fe0ab2ba66b.tar.bz2 dexon-0x-contracts-62412b8551d1171844c9cdb30f2b2fe0ab2ba66b.tar.lz dexon-0x-contracts-62412b8551d1171844c9cdb30f2b2fe0ab2ba66b.tar.xz dexon-0x-contracts-62412b8551d1171844c9cdb30f2b2fe0ab2ba66b.tar.zst dexon-0x-contracts-62412b8551d1171844c9cdb30f2b2fe0ab2ba66b.zip |
Update relayer code to use new relayer-registry format
Diffstat (limited to 'packages/pipeline/src/data_sources')
-rw-r--r-- | packages/pipeline/src/data_sources/relayer-registry/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/pipeline/src/data_sources/relayer-registry/index.ts b/packages/pipeline/src/data_sources/relayer-registry/index.ts index c97b50d27..8199dae14 100644 --- a/packages/pipeline/src/data_sources/relayer-registry/index.ts +++ b/packages/pipeline/src/data_sources/relayer-registry/index.ts @@ -26,8 +26,8 @@ export class RelayerRegistrySource { this._url = url; } - public async getRelayerInfoAsync(): Promise<RelayerResponse[]> { - const resp = await axios.get<RelayerResponse[]>(this._url); + public async getRelayerInfoAsync(): Promise<Map<string, RelayerResponse>> { + const resp = await axios.get<Map<string, RelayerResponse>>(this._url); return resp.data; } } |