Add postFormatter for logs

This commit is contained in:
Leonid Logvinov
2017-11-21 13:09:23 -06:00
parent 037f466e1f
commit c8c95b4bd2
2 changed files with 33 additions and 3 deletions

View File

@@ -361,6 +361,8 @@ describe('TokenWrapper', () => {
(async () => {
const callback = (err: Error, logEvent: DecodedLogEvent<TransferContractEventArgs>) => {
expect(logEvent).to.not.be.undefined();
expect(logEvent.logIndex).to.be.equal(0);
expect(logEvent.transactionIndex).to.be.equal(0);
const args = logEvent.args;
expect(args._from).to.be.equal(coinbase);
expect(args._to).to.be.equal(addressWithoutFunds);