aboutsummaryrefslogtreecommitdiffstats
path: root/event.encode.js
diff options
context:
space:
mode:
Diffstat (limited to 'event.encode.js')
-rw-r--r--event.encode.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/event.encode.js b/event.encode.js
index c28588c2..6d9850c0 100644
--- a/event.encode.js
+++ b/event.encode.js
@@ -131,6 +131,32 @@ var tests = [{
a: 1
},
options: {
+ fromBlock: 'latest',
+ toBlock: 'pending'
+ },
+ expected: {
+ address: address,
+ fromBlock: 'latest',
+ toBlock: 'pending',
+ topics: [
+ signature,
+ '0x0000000000000000000000000000000000000000000000000000000000000001'
+ ]
+ }
+},
+{
+ abi: {
+ name: 'event1',
+ inputs: [{
+ type: 'int',
+ name: 'a',
+ indexed: true
+ }]
+ },
+ indexed: {
+ a: 1
+ },
+ options: {
fromBlock: 4,
toBlock: 10
},