Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Replaces ethereumjs-abi with ethers.js/abi-coder #556

Merged
merged 11 commits into from
Jan 9, 2019
7 changes: 1 addition & 6 deletions packages/cli/test/scripts/create.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,10 @@ contract('create script', function([_, owner]) {
});

it('should initialize a proxy using scientific notation', async function() {
const proxy = await createProxy({ contractAlias, network, txParams, initMethod: 'initialize', initArgs: ["20e10"], networkFile: this.networkFile });
const proxy = await createProxy({ contractAlias, network, txParams, initMethod: 'initialize', initArgs: [Number("20e10")], networkFile: this.networkFile });
(await proxy.value()).toString().should.be.eq('200000000000');
});

it('should initialize a proxy using large number on scientific notation', async function() {
spalladino marked this conversation as resolved.
Show resolved Hide resolved
const proxy = await createProxy({ contractAlias, network, txParams, initMethod: 'initialize', initArgs: ["20e70"], networkFile: this.networkFile });
(await proxy.value()).toString().should.be.eq('2e+71');
});

describe('warnings', function () {
beforeEach('capturing log output', function () {
this.logs = new CaptureLogs();
Expand Down
Loading