* v2-prototype: (97 commits) Fix typos in comments Add modifier and tests for removeAuthorizedAddressAtIndex Update and add tests Change removeAuthorizedAddress => removeAuthorizedAddressAtIndex Move isFunctionRemoveAuthorizedAddress to test Fix usage of `popLastByte` Fix LibBytes is a library Remove `areBytesEqual` Fix usage of `contentAddress()` Clean low bits in bytes4 Clean high bits in address Refactor LibBytes.readBytes4 for consistency Fix LibBytes.equals Add trailing garbage testcase for LibBytes.equals Rename bytes.equals Add slice and sliceDestructive Rename bytes.rawAddress and add bytes.contentAddress Rename read/writeBytesWithLength Using LibBytes for bytes Make LibBytes a library ... # Conflicts: # packages/contracts/src/utils/constants.ts # packages/contracts/test/exchange/core.ts
18 lines
688 B
TypeScript
18 lines
688 B
TypeScript
import { devConstants } from '@0xproject/dev-utils';
|
|
import { runV1MigrationsAsync } from '@0xproject/migrations';
|
|
|
|
import { provider } from './utils/web3_wrapper';
|
|
|
|
before('migrate contracts', async function(): Promise<void> {
|
|
// HACK: Since the migrations take longer then our global mocha timeout limit
|
|
// we manually increase it for this before hook.
|
|
const mochaTestTimeoutMs = 25000;
|
|
this.timeout(mochaTestTimeoutMs);
|
|
const txDefaults = {
|
|
gas: devConstants.GAS_LIMIT,
|
|
from: devConstants.TESTRPC_FIRST_ADDRESS,
|
|
};
|
|
const artifactsDir = `../migrations/artifacts/1.0.0`;
|
|
await runV1MigrationsAsync(provider, artifactsDir, txDefaults);
|
|
});
|