Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
e0e8a2b4
Commit
e0e8a2b4
authored
Mar 29, 2021
by
lianahus
Committed by
Liana Husikyan
May 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added tracking of network type usage and ipfs publish
parent
273d85b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
contractDropdown.js
apps/remix-ide/src/app/tabs/runTab/contractDropdown.js
+5
-1
No files found.
apps/remix-ide/src/app/tabs/runTab/contractDropdown.js
View file @
e0e8a2b4
...
@@ -9,6 +9,7 @@ const confirmDialog = require('../../ui/confirmDialog')
...
@@ -9,6 +9,7 @@ const confirmDialog = require('../../ui/confirmDialog')
const
modalDialog
=
require
(
'../../ui/modaldialog'
)
const
modalDialog
=
require
(
'../../ui/modaldialog'
)
const
MultiParamManager
=
require
(
'../../ui/multiParamManager'
)
const
MultiParamManager
=
require
(
'../../ui/multiParamManager'
)
const
helper
=
require
(
'../../../lib/helper'
)
const
helper
=
require
(
'../../../lib/helper'
)
const
_paq
=
window
.
_paq
=
window
.
_paq
||
[]
class
ContractDropdownUI
{
class
ContractDropdownUI
{
constructor
(
blockchain
,
dropdownLogic
,
logCallback
,
runView
)
{
constructor
(
blockchain
,
dropdownLogic
,
logCallback
,
runView
)
{
...
@@ -300,13 +301,16 @@ class ContractDropdownUI {
...
@@ -300,13 +301,16 @@ class ContractDropdownUI {
if
(
error
)
{
if
(
error
)
{
return
this
.
logCallback
(
error
)
return
this
.
logCallback
(
error
)
}
}
_paq
.
push
([
'trackEvent'
,
'udapp'
,
'txTo'
,
this
.
networkName
])
self
.
event
.
trigger
(
'newContractInstanceAdded'
,
[
contractObject
,
address
,
contractObject
.
name
])
self
.
event
.
trigger
(
'newContractInstanceAdded'
,
[
contractObject
,
address
,
contractObject
.
name
])
const
data
=
self
.
runView
.
compilersArtefacts
.
getCompilerAbstract
(
contractObject
.
contract
.
file
)
const
data
=
self
.
runView
.
compilersArtefacts
.
getCompilerAbstract
(
contractObject
.
contract
.
file
)
self
.
runView
.
compilersArtefacts
.
addResolvedContract
(
helper
.
addressToString
(
address
),
data
)
self
.
runView
.
compilersArtefacts
.
addResolvedContract
(
helper
.
addressToString
(
address
),
data
)
if
(
self
.
ipfsCheckedState
)
{
if
(
self
.
ipfsCheckedState
)
{
_paq
.
push
([
'trackEvent'
,
'udapp'
,
'ipfsPublishChecked'
])
publishToStorage
(
'ipfs'
,
self
.
runView
.
fileProvider
,
self
.
runView
.
fileManager
,
selectedContract
)
publishToStorage
(
'ipfs'
,
self
.
runView
.
fileProvider
,
self
.
runView
.
fileManager
,
selectedContract
)
}
else
{
_paq
.
push
([
'trackEvent'
,
'udapp'
,
'ipfsPublishNotChecked'
])
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment