diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/contract_wrappers/token_registry_wrapper.ts | 3 | ||||
-rw-r--r-- | src/schemas/token_schema.ts | 13 | ||||
-rw-r--r-- | src/types.ts | 5 |
3 files changed, 4 insertions, 17 deletions
diff --git a/src/contract_wrappers/token_registry_wrapper.ts b/src/contract_wrappers/token_registry_wrapper.ts index d15e5c4f7..eaaea150d 100644 --- a/src/contract_wrappers/token_registry_wrapper.ts +++ b/src/contract_wrappers/token_registry_wrapper.ts @@ -30,8 +30,7 @@ export class TokenRegistryWrapper extends ContractWrapper { address: metadata[0], name: metadata[1], symbol: metadata[2], - url: metadata[3], - decimals: metadata[4].toNumber(), + decimals: metadata[3].toNumber(), }; }); return tokens; diff --git a/src/schemas/token_schema.ts b/src/schemas/token_schema.ts index 1236e07c1..e9e359fdf 100644 --- a/src/schemas/token_schema.ts +++ b/src/schemas/token_schema.ts @@ -5,18 +5,7 @@ export const tokenSchema = { symbol: {type: 'string'}, decimals: {type: 'number'}, address: {$ref: '/addressSchema'}, - url: { - oneOf: [ - { - type: 'string', - format: 'uri', - }, - { - enum: [''], - }, - ], - }, }, - required: ['name', 'symbol', 'decimals', 'address', 'url'], + required: ['name', 'symbol', 'decimals', 'address'], type: 'object', }; diff --git a/src/types.ts b/src/types.ts index bed00a006..9b22351bd 100644 --- a/src/types.ts +++ b/src/types.ts @@ -275,15 +275,14 @@ export interface SignedOrder extends Order { ecSignature: ECSignature; } -// [address, name, symbol, projectUrl, decimals, ipfsHash, swarmHash] -export type TokenMetadata = [string, string, string, string, BigNumber.BigNumber, string, string]; +// [address, name, symbol, decimals, ipfsHash, swarmHash] +export type TokenMetadata = [string, string, string, BigNumber.BigNumber, string, string]; export interface Token { name: string; address: string; symbol: string; decimals: number; - url: string; } export interface TxOpts { |