Skip to content
This repository has been archived by the owner on Oct 4, 2019. It is now read-only.

Commit

Permalink
Merge pull request #549 from ethereumproject/fix/personal-transaction…
Browse files Browse the repository at this point in the history
…-api

Fix/personal transaction api
  • Loading branch information
whilei authored Apr 4, 2018
2 parents ce00522 + d8e4a29 commit 003aa6f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion eth/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 6 additions & 0 deletions internal/web3ext/web3ext.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
})
]
});
Expand Down

0 comments on commit 003aa6f

Please sign in to comment.