diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2018-04-10 02:55:23 +0800 |
---|---|---|
committer | Greg Hysen <greg.hysen@gmail.com> | 2018-04-10 10:25:07 +0800 |
commit | eecf09f51564df4f63139f26e65efa1102a9958d (patch) | |
tree | 2ab49214ca5f1aef196d1899de8091908feabb82 /packages/metacoin/test/metacoin_test.ts | |
parent | 61fc3346c2fe2adc33dfe84aa50780d61e10efdf (diff) | |
download | dexon-0x-contracts-eecf09f51564df4f63139f26e65efa1102a9958d.tar.gz dexon-0x-contracts-eecf09f51564df4f63139f26e65efa1102a9958d.tar.zst dexon-0x-contracts-eecf09f51564df4f63139f26e65efa1102a9958d.zip |
Added a detailed description of `renameOverloadedMethods` (special thanks to @fabioberger). Updated Javascript styles in the Abi-Gen and Utils packages, around support for function overloading.
Diffstat (limited to 'packages/metacoin/test/metacoin_test.ts')
-rw-r--r-- | packages/metacoin/test/metacoin_test.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/metacoin/test/metacoin_test.ts b/packages/metacoin/test/metacoin_test.ts index 4a2307444..51830d1ef 100644 --- a/packages/metacoin/test/metacoin_test.ts +++ b/packages/metacoin/test/metacoin_test.ts @@ -36,12 +36,12 @@ describe('Metacoin', () => { }); }); describe('#transfer', () => { - it(`should successfully transfer tokens (via transfer_1)`, async () => { + it(`should successfully transfer tokens (via transfer1)`, async () => { const ZERO_ADDRESS = '0x0000000000000000000000000000000000000000'; const amount = INITIAL_BALANCE.div(2); const oldBalance = await metacoin.balances.callAsync(ZERO_ADDRESS); expect(oldBalance).to.be.bignumber.equal(0); - const txHash = await metacoin.transfer_1.sendTransactionAsync( + const txHash = await metacoin.transfer1.sendTransactionAsync( { to: ZERO_ADDRESS, amount, @@ -59,13 +59,13 @@ describe('Metacoin', () => { expect(newBalance).to.be.bignumber.equal(amount); }); - it(`should successfully transfer tokens (via transfer_2)`, async () => { + it(`should successfully transfer tokens (via transfer2)`, async () => { const ZERO_ADDRESS = '0x0000000000000000000000000000000000000000'; const amount = INITIAL_BALANCE.div(2); const oldBalance = await metacoin.balances.callAsync(ZERO_ADDRESS); expect(oldBalance).to.be.bignumber.equal(0); const callback = 59; - const txHash = await metacoin.transfer_2.sendTransactionAsync( + const txHash = await metacoin.transfer2.sendTransactionAsync( { to: ZERO_ADDRESS, amount, @@ -84,13 +84,13 @@ describe('Metacoin', () => { expect(newBalance).to.be.bignumber.equal(amount); }); - it(`should successfully transfer tokens (via transfer_3)`, async () => { + it(`should successfully transfer tokens (via transfer3)`, async () => { const ZERO_ADDRESS = '0x0000000000000000000000000000000000000000'; const amount = INITIAL_BALANCE.div(2); const oldBalance = await metacoin.balances.callAsync(ZERO_ADDRESS); expect(oldBalance).to.be.bignumber.equal(0); const callback = 59; - const txHash = await metacoin.transfer_3.sendTransactionAsync( + const txHash = await metacoin.transfer3.sendTransactionAsync( { transferData: { to: ZERO_ADDRESS, |