Renaming signAndSendTransaction to sendTransaction (#4351)
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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: [
|
||||
{
|
||||
|
||||
@@ -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]
|
||||
}),
|
||||
|
||||
@@ -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": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user