diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-02-28 09:25:42 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-02-28 09:25:42 +0800 |
commit | a3c7af95e17dda91efaff83824c43f8ffb28f078 (patch) | |
tree | f45e2dd4bf2032501c22e519a09098e62840328f /packages/sra-report/src/index.ts | |
parent | 0987c9a7cfb1936469062b4cb6222158b5e110b7 (diff) | |
download | dexon-0x-contracts-a3c7af95e17dda91efaff83824c43f8ffb28f078.tar.gz dexon-0x-contracts-a3c7af95e17dda91efaff83824c43f8ffb28f078.tar.zst dexon-0x-contracts-a3c7af95e17dda91efaff83824c43f8ffb28f078.zip |
Add stringified order object into globals
Diffstat (limited to 'packages/sra-report/src/index.ts')
-rw-r--r-- | packages/sra-report/src/index.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/packages/sra-report/src/index.ts b/packages/sra-report/src/index.ts index fade07095..bee9db192 100644 --- a/packages/sra-report/src/index.ts +++ b/packages/sra-report/src/index.ts @@ -1,6 +1,4 @@ #!/usr/bin/env node - -import { ZeroEx } from '0x.js'; import { assert } from '@0xproject/assert'; import { HttpClient } from '@0xproject/connect'; import { Schema, schemas } from '@0xproject/json-schemas'; @@ -62,10 +60,9 @@ const mainAsync = async () => { if (_.isUndefined(firstOrder)) { throw new Error('Could not get any orders from /orders endpoint'); } - const orderHash = ZeroEx.getOrderHashHex(firstOrder); const newmanEnvironmentOptions = { collection: sraReportCollectionJSON, - globals: postmanEnvironmentFactory.createGlobalEnvironment(args.url, orderHash), + globals: postmanEnvironmentFactory.createGlobalEnvironment(args.url, firstOrder), environment: postmanEnvironmentFactory.createNetworkEnvironment(args.networkId), }; const newmanReporterOptions = !_.isUndefined(args.output) |