|
|
@ -3,6 +3,7 @@ |
|
|
|
import Web3 from 'web3' |
|
|
|
import Web3 from 'web3' |
|
|
|
import { execution } from '@remix-project/remix-lib' |
|
|
|
import { execution } from '@remix-project/remix-lib' |
|
|
|
import EventManager from '../lib/events' |
|
|
|
import EventManager from '../lib/events' |
|
|
|
|
|
|
|
const _paq = window._paq = window._paq || [] |
|
|
|
|
|
|
|
|
|
|
|
let web3 |
|
|
|
let web3 |
|
|
|
|
|
|
|
|
|
|
@ -128,6 +129,7 @@ export class ExecutionContext { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
async executionContextChange (value, endPointUrl, confirmCb, infoCb, cb) { |
|
|
|
async executionContextChange (value, endPointUrl, confirmCb, infoCb, cb) { |
|
|
|
|
|
|
|
_paq.push(['trackEvent', 'udapp', 'providerChanged', value.context]) |
|
|
|
const context = value.context |
|
|
|
const context = value.context |
|
|
|
if (!cb) cb = () => { /* Do nothing. */ } |
|
|
|
if (!cb) cb = () => { /* Do nothing. */ } |
|
|
|
if (!confirmCb) confirmCb = () => { /* Do nothing. */ } |
|
|
|
if (!confirmCb) confirmCb = () => { /* Do nothing. */ } |
|
|
|