Commit d563b17c authored by Iuri Matias's avatar Iuri Matias

remove blockchain context method

parent 71b6590b
......@@ -59,7 +59,7 @@ class UniversalDAppUI {
address = (address.slice(0, 2) === '0x' ? '' : '0x') + address.toString('hex')
address = ethJSUtil.toChecksumAddress(address)
const instance = yo`<div class="instance ${css.instance} ${css.hidesub}" id="instance${address}"></div>`
const context = this.blockchain.context()
const context = (this.blockchain.getProvider() === 'vm' ? 'memory' : 'blockchain')
function toggleClass (e) {
$(instance).toggleClass(`${css.hidesub}`)
......
......@@ -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!
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment