one additional test for event encode

This commit is contained in:
Marek Kotewicz 2015-04-22 10:59:09 +02:00
parent 9f7d6a9925
commit 7c16dbf7e4
1 changed files with 24 additions and 0 deletions

View File

@ -162,6 +162,30 @@ var tests = [{
'0x0000000000000000000000000000000000000000000000000000000000000001'
]
}
}, {
abi: {
name: 'event1',
inputs: [{
type: 'int',
name: 'a',
indexed: true
}, {
type: 'int',
name: 'b',
indexed: true
}],
anonymous: true
},
indexed: {
b: 1
},
options: {},
expected: {
topics: [
null,
'0x0000000000000000000000000000000000000000000000000000000000000001'
]
}
}];
describe('lib/web3/event', function () {