From 3a558d2460f2ee7a73606a46b1b6652c936c4ae8 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Tue, 19 Nov 2019 18:22:04 +0100 Subject: [PATCH] internal/web3ext, les: update clique JS and make it work with the light client (#20318) Also fix the input formatter on clique_getSnapshot and clique_getSigners so that integers as well as hex number strings are accepted. --- internal/web3ext/web3ext.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/internal/web3ext/web3ext.go b/internal/web3ext/web3ext.go index 53f2425e7..dbffbd2a8 100644 --- a/internal/web3ext/web3ext.go +++ b/internal/web3ext/web3ext.go @@ -74,7 +74,7 @@ web3._extend({ name: 'getSnapshot', call: 'clique_getSnapshot', params: 1, - inputFormatter: [null] + inputFormatter: [web3._extend.utils.fromDecimal] }), new web3._extend.Method({ name: 'getSnapshotAtHash', @@ -85,7 +85,7 @@ web3._extend({ name: 'getSigners', call: 'clique_getSigners', params: 1, - inputFormatter: [null] + inputFormatter: [web3._extend.utils.fromDecimal] }), new web3._extend.Method({ name: 'getSignersAtHash', @@ -102,6 +102,11 @@ web3._extend({ call: 'clique_discard', params: 1 }), + new web3._extend.Method({ + name: 'status', + call: 'clique_status', + params: 0 + }), ], properties: [ new web3._extend.Property({