From dc0e9ab1b9f55cd260dc81f82be57a4e3e44a3c2 Mon Sep 17 00:00:00 2001 From: barryz Date: Mon, 31 May 2021 17:10:55 +0800 Subject: [PATCH] console: add method signature for txpool_contentByAccount --- internal/web3ext/web3ext.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/internal/web3ext/web3ext.go b/internal/web3ext/web3ext.go index 1934412c90..562568c2b8 100644 --- a/internal/web3ext/web3ext.go +++ b/internal/web3ext/web3ext.go @@ -773,7 +773,15 @@ web3._extend({ const TxpoolJs = ` web3._extend({ property: 'txpool', - methods: [], + methods: + [ + new web3._extend.Method({ + name: 'contentByAccount', + call: 'txpool_contentByAccount', + params: 1, + inputFormatter: [null] + }), + ], properties: [ new web3._extend.Property({