Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions apps/remix-ide/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,11 @@ class AppComponent {
const pluginLoader = this.appManager.pluginLoader
this.panels = {}
this.workspace = pluginLoader.get()
if (pluginLoader.current === 'queryParams') {
this.workspace.map((workspace) => {
_paq.push(['trackEvent', 'App', 'queryParams-activated', workspace])
})
}
this.engine = new RemixEngine()
this.engine.register(appManager)

Expand Down Expand Up @@ -647,6 +652,7 @@ class AppComponent {
if (callDetails.length > 1) {
this.appManager.call('notification', 'toast', `initiating ${callDetails[0]} and calling "${callDetails[1]}" ...`)
// @todo(remove the timeout when activatePlugin is on 0.3.0)
_paq.push(['trackEvent', 'App', 'queryParams-calls', params.call])
//@ts-ignore
await this.appManager.call(...callDetails).catch(console.error)
}
Expand All @@ -657,6 +663,7 @@ class AppComponent {

// call all functions in the list, one after the other
for (const call of calls) {
_paq.push(['trackEvent', 'App', 'queryParams-calls', call])
const callDetails = call.split('//')
if (callDetails.length > 1) {
this.appManager.call('notification', 'toast', `initiating ${callDetails[0]} and calling "${callDetails[1]}" ...`)
Expand Down
3 changes: 2 additions & 1 deletion libs/remix-core-plugin/src/lib/compiler-artefacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import { Plugin } from '@remixproject/engine'
import { util } from '@remix-project/remix-lib'
import { CompilerAbstract } from '@remix-project/remix-solidity'
import { toChecksumAddress } from '@ethereumjs/util'

const profile = {
name: 'compilerArtefacts',
Expand Down Expand Up @@ -202,7 +203,7 @@ export class CompilerArtefacts extends Plugin {
}

get(key) {
return this.compilersArtefacts[key]
return this.compilersArtefacts[key] || this.compilersArtefacts[toChecksumAddress(key)]
}

async getContractDataFromAddress(address) {
Expand Down
2 changes: 1 addition & 1 deletion libs/remix-ui/run-tab/src/lib/actions/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ export const runTransactions = (
if (lookupOnly) callinfo = 'call'
else if (funcABI.type === 'fallback' || funcABI.type === 'receive') callinfo = 'lowLevelinteractions'
else callinfo = 'transact'
_paq.push(['trackEvent', 'udapp', callinfo, plugin.blockchain.getCurrentNetworkStatus().network.name])
_paq.push(['trackEvent', 'udapp', callinfo, plugin.REACT_API.networkName])

const params = funcABI.type !== 'fallback' ? inputsValues : ''
plugin.blockchain.runOrCallContractMethod(
Expand Down
1 change: 1 addition & 0 deletions libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,7 @@ export function Workspace() {
try {
await global.dispatchSwitchToWorkspace(name)
global.dispatchHandleExpandPath([])
_paq.push(['trackEvent', 'Workspace', 'switchWorkspace', name])
} catch (e) {
global.modal(
intl.formatMessage({ id: 'filePanel.workspace.switch' }),
Expand Down