From 39d8ef77f5aa89470d867e6e89b1886652a53127 Mon Sep 17 00:00:00 2001 From: lianahus Date: Tue, 31 Aug 2021 16:12:24 +0200 Subject: [PATCH] updated with new API of web3.js --- apps/remix-ide/src/blockchain/providers/injected.js | 2 +- apps/remix-ide/src/blockchain/providers/node.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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) }) }