Fix typos

This commit is contained in:
Leonid Logvinov
2018-06-11 22:03:07 -07:00
parent 682f6d273c
commit 534a0d6836
4 changed files with 11 additions and 10 deletions

View File

@@ -1,14 +1,14 @@
## @0xproject/metacoin
This is a small example project that server as a showroom/polygon for 0x dev tools.
It suppports:
This is an example project that demonstrates how the many Ethereum dev tools developed by 0x can be used in any Solidity/TS project.
It supports:
* Compiling & testing smart contracts
* Typed contract wrappers
* Coverage
* Profiling
* Generating typed contract wrappers
* Solidity coverage
* Solidity gas profiling
* Running tests against Ganache
* Running tests against our fork of Geth that supports snapshots & time travel
* Running tests against our fork of Geth (it supports snapshotting & time travel)
## Contributing
@@ -81,7 +81,7 @@ yarn coverage:report:html
### Profiling
Please note that traces emmited by ganache have incorrect gas costs so we recommend using Geth for profiling.
Please note that traces emitted by ganache have incorrect gas costs so we recommend using Geth for profiling.
```bash
TEST_PROVIDER=geth yarn test:profile

View File

@@ -3,7 +3,7 @@ import { env, EnvVars } from '@0xproject/dev-utils';
import { coverage } from './utils/coverage';
import { profiler } from './utils/profiler';
after('generate coverage & profiler report', async () => {
after('generate coverage || profiler report', async () => {
if (env.parseBoolean(EnvVars.SolidityCoverage)) {
const coverageSubprovider = coverage.getCoverageSubproviderSingleton();
await coverageSubprovider.writeCoverageAsync();

View File

@@ -10,6 +10,7 @@ import { MetacoinContract, TransferContractEventArgs } from '../src/contract_wra
import { chaiSetup } from './utils/chai_setup';
import { config } from './utils/config';
// Comment out the next line enable profiling
// import { profiler } from './utils/profiler';
import { provider, web3Wrapper } from './utils/web3_wrapper';

View File

@@ -1,6 +1,6 @@
import { env, EnvVars } from '@0xproject/dev-utils';
import { GanacheSubprovider, prependSubprovider } from '@0xproject/subproviders';
import { logUtils } from '@0xproject/utils';
import { logUtils, errorUtils } from '@0xproject/utils';
import { Web3Wrapper } from '@0xproject/web3-wrapper';
import * as fs from 'fs';
import ProviderEngine = require('web3-provider-engine');
@@ -27,7 +27,7 @@ switch (process.env.TEST_PROVIDER) {
testProvider = ProviderType.Geth;
break;
default:
throw new Error(`Unknown TEST_PROVIDER: ${process.env.TEST_PROVIDER}`);
throw errorUtils.spawnSwitchErr('TEST_PROVIDER', process.env.TEST_PROVIDER);
}
export const provider = new ProviderEngine();