Renaming signAndSendTransaction to sendTransaction (#4351)

This commit is contained in:
Tomasz Drwięga
2017-01-30 12:49:08 +01:00
committed by Gav Wood
parent f627bef08b
commit 3fb445e198
7 changed files with 11 additions and 11 deletions

View File

@@ -34,9 +34,9 @@ export default class Personal {
.then(outAddress);
}
signAndSendTransaction (options, password) {
sendTransaction (options, password) {
return this._transport
.execute('personal_signAndSendTransaction', inOptions(options), password);
.execute('personal_sendTransaction', inOptions(options), password);
}
unlockAccount (account, password, duration = 1) {

View File

@@ -46,7 +46,7 @@ export default {
}
},
signAndSendTransaction: {
sendTransaction: {
desc: 'Sends transaction and signs it in a single call. The account does not need to be unlocked to make this call, and will not be left unlocked after.',
params: [
{

View File

@@ -21,8 +21,8 @@ export default function web3extensions (web3) {
property: 'personal',
methods: [
new Method({
name: 'signAndSendTransaction',
call: 'personal_signAndSendTransaction',
name: 'sendTransaction',
call: 'personal_sendTransaction',
params: 2,
inputFormatter: [formatters.inputTransactionFormatter, null]
}),

View File

@@ -829,7 +829,7 @@
"outputFormatter": null
},
{
"name": "personal_signAndSendTransaction",
"name": "personal_sendTransaction",
"desc": "Sends and signs a transaction given account passphrase. Does not require the account to be unlocked nor unlocks the account for future transactions. ",
"params": [
{