diff --git a/eth/api.go b/eth/api.go index e6f1233c4..8cbb8b59a 100644 --- a/eth/api.go +++ b/eth/api.go @@ -534,7 +534,7 @@ func (s *PrivateAccountAPI) SendTransaction(args SendTxArgs, passwd string) (com // SignAndSendTransaction was renamed to SendTransaction. This method is deprecated // and will be removed in the future. It primary goal is to give clients time to update. func (s *PrivateAccountAPI) SignAndSendTransaction(args SendTxArgs, passwd string) (common.Hash, error) { - return s.SignAndSendTransaction(args, passwd) + return s.SendTransaction(args, passwd) } // PublicBlockChainAPI provides an API to access the Ethereum blockchain. diff --git a/internal/web3ext/web3ext.go b/internal/web3ext/web3ext.go index e1aa668c5..3e5b62361 100644 --- a/internal/web3ext/web3ext.go +++ b/internal/web3ext/web3ext.go @@ -353,6 +353,12 @@ web3._extend({ call: 'personal_signAndSendTransaction', params: 2, inputFormatter: [web3._extend.formatters.inputTransactionFormatter, null] + }), + new web3._extend.Method({ + name: 'sendTransaction', + call: 'personal_sendTransaction', + params: 2, + inputFormatter: [web3._extend.formatters.inputTransactionFormatter, null] }) ] });