aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contract-wrappers
diff options
context:
space:
mode:
authorJacob Evans <dekz@dekz.net>2018-07-11 18:59:23 +0800
committerGitHub <noreply@github.com>2018-07-11 18:59:23 +0800
commit8fcc7aefa7651311c5a6348101eb023d28799934 (patch)
tree19bf75ae415e59d713c0b8e2025c25ab4a871172 /packages/contract-wrappers
parentb9627e14d0b30eb50e9169fb7002f942fa089347 (diff)
parent0b6ea1d0468847ac07c40232cf1431e2bb92ac86 (diff)
downloaddexon-sol-tools-8fcc7aefa7651311c5a6348101eb023d28799934.tar
dexon-sol-tools-8fcc7aefa7651311c5a6348101eb023d28799934.tar.gz
dexon-sol-tools-8fcc7aefa7651311c5a6348101eb023d28799934.tar.bz2
dexon-sol-tools-8fcc7aefa7651311c5a6348101eb023d28799934.tar.lz
dexon-sol-tools-8fcc7aefa7651311c5a6348101eb023d28799934.tar.xz
dexon-sol-tools-8fcc7aefa7651311c5a6348101eb023d28799934.tar.zst
dexon-sol-tools-8fcc7aefa7651311c5a6348101eb023d28799934.zip
Merge pull request #840 from 0xProject/feature/migrations/forwarder-migrations
Add Migrations for Forwarder and miscellaneous fixes
Diffstat (limited to 'packages/contract-wrappers')
-rw-r--r--packages/contract-wrappers/test/ether_token_wrapper_test.ts14
1 files changed, 9 insertions, 5 deletions
diff --git a/packages/contract-wrappers/test/ether_token_wrapper_test.ts b/packages/contract-wrappers/test/ether_token_wrapper_test.ts
index 0a860884a..48bd6d3f6 100644
--- a/packages/contract-wrappers/test/ether_token_wrapper_test.ts
+++ b/packages/contract-wrappers/test/ether_token_wrapper_test.ts
@@ -336,15 +336,19 @@ describe('EtherTokenWrapper', () => {
describe('#getLogsAsync', () => {
let etherTokenAddress: string;
let erc20ProxyAddress: string;
- const blockRange: BlockRange = {
- fromBlock: 0,
- toBlock: BlockParamLiteral.Latest,
- };
+ let blockRange: BlockRange;
let txHash: string;
- before(() => {
+ before(async () => {
addressWithETH = userAddresses[0];
etherTokenAddress = tokenUtils.getWethTokenAddress();
erc20ProxyAddress = contractWrappers.erc20Proxy.getContractAddress();
+ // Start the block range after all migrations to avoid unexpected logs
+ const currentBlock = await web3Wrapper.getBlockNumberAsync();
+ const fromBlock = currentBlock + 1;
+ blockRange = {
+ fromBlock,
+ toBlock: BlockParamLiteral.Latest,
+ };
});
it('should get logs with decoded args emitted by Approval', async () => {
txHash = await contractWrappers.erc20Token.setUnlimitedProxyAllowanceAsync(