From 6b8d029bfe0c1b466906fbfaedda774e6fdb84eb Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Tue, 7 Jan 2020 17:15:44 -0500 Subject: [PATCH] remove blockchain context method --- src/app/ui/universal-dapp-ui.js | 2 +- src/blockchain/blockchain.js | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/app/ui/universal-dapp-ui.js b/src/app/ui/universal-dapp-ui.js index f262ca51cb..5e7d1865f4 100644 --- a/src/app/ui/universal-dapp-ui.js +++ b/src/app/ui/universal-dapp-ui.js @@ -59,7 +59,7 @@ class UniversalDAppUI { address = (address.slice(0, 2) === '0x' ? '' : '0x') + address.toString('hex') address = ethJSUtil.toChecksumAddress(address) const instance = yo`
` - const context = this.blockchain.context() + const context = (this.blockchain.getProvider() === 'vm' ? 'memory' : 'blockchain') function toggleClass (e) { $(instance).toggleClass(`${css.hidesub}`) diff --git a/src/blockchain/blockchain.js b/src/blockchain/blockchain.js index e0387604b6..7b0616e9f6 100644 --- a/src/blockchain/blockchain.js +++ b/src/blockchain/blockchain.js @@ -373,10 +373,6 @@ class Blockchain { }) } - context () { - return (this.executionContext.isVM() ? 'memory' : 'blockchain') - } - /** * This function send a tx only to javascript VM or testnet, will return an error for the mainnet * SHOULD BE TAKEN CAREFULLY!