diff --git a/apps/remix-ide/src/blockchain/providers/injected.js b/apps/remix-ide/src/blockchain/providers/injected.js index 074fcfbf2a..f1272dc058 100644 --- a/apps/remix-ide/src/blockchain/providers/injected.js +++ b/apps/remix-ide/src/blockchain/providers/injected.js @@ -12,7 +12,7 @@ class InjectedProvider { newAccount (passwordPromptCb, cb) { passwordPromptCb((passphrase) => { - this.executionContext.web3().personal.newAccount(passphrase, cb) + this.executionContext.web3().eth.personal.newAccount(passphrase, cb) }) } diff --git a/apps/remix-ide/src/blockchain/providers/node.js b/apps/remix-ide/src/blockchain/providers/node.js index abe407c3f3..b62158ec69 100644 --- a/apps/remix-ide/src/blockchain/providers/node.js +++ b/apps/remix-ide/src/blockchain/providers/node.js @@ -10,7 +10,7 @@ class NodeProvider { getAccounts (cb) { if (this.config.get('settings/personal-mode')) { - return this.executionContext.web3().personal.getListAccounts(cb) + return this.executionContext.web3().eth.personal.getAccounts(cb) } return this.executionContext.web3().eth.getAccounts(cb) } @@ -20,7 +20,7 @@ class NodeProvider { return cb('Not running in personal mode') } passwordPromptCb((passphrase) => { - this.executionContext.web3().personal.newAccount(passphrase, cb) + this.executionContext.web3().eth.personal.newAccount(passphrase, cb) }) }