diff options
author | Martin Holst Swende <martin@swende.se> | 2018-01-27 01:32:43 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-01-27 01:32:43 +0800 |
commit | 722bac84fa503199b9c485c1a3e2bfba03bc487d (patch) | |
tree | 96a3a7072a6724817b72fe2584a3b852cf327945 /internal/web3ext/web3ext.go | |
parent | 23bca0f374b3e1ccfa19bfeb86d06a0aca82184b (diff) | |
download | dexon-722bac84fa503199b9c485c1a3e2bfba03bc487d.tar.gz dexon-722bac84fa503199b9c485c1a3e2bfba03bc487d.tar.zst dexon-722bac84fa503199b9c485c1a3e2bfba03bc487d.zip |
ethapi: add personal.signTransaction (#15971)
* ethapi: add personal.signTransaction
* ethapi: refactor to minimize duplicate code
* ethapi: make nonce,gas,gasPrice obligatory in signTransaction
Diffstat (limited to 'internal/web3ext/web3ext.go')
-rw-r--r-- | internal/web3ext/web3ext.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/web3ext/web3ext.go b/internal/web3ext/web3ext.go index e11aa402f..a6b81b4c2 100644 --- a/internal/web3ext/web3ext.go +++ b/internal/web3ext/web3ext.go @@ -517,6 +517,12 @@ web3._extend({ call: 'personal_deriveAccount', params: 3 }), + new web3._extend.Method({ + name: 'signTransaction', + call: 'personal_signTransaction', + params: 2, + inputFormatter: [web3._extend.formatters.inputTransactionFormatter, null] + }), ], properties: [ new web3._extend.Property({ |