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
7fc2e681
Commit
7fc2e681
authored
Aug 31, 2017
by
Rob Stupay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
alert tx - not working
parent
56b19ca0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
app.js
src/app.js
+2
-0
run-tab.js
src/app/tabs/run-tab.js
+3
-1
No files found.
src/app.js
View file @
7fc2e681
...
@@ -639,6 +639,8 @@ function run () {
...
@@ -639,6 +639,8 @@ function run () {
editor
.
clearAnnotations
()
editor
.
clearAnnotations
()
})
})
function
startdebugging
(
txHash
)
{
function
startdebugging
(
txHash
)
{
self
.
event
.
trigger
(
'debuggingRequested'
,
[])
self
.
event
.
trigger
(
'debuggingRequested'
,
[])
transactionDebugger
.
debug
(
txHash
)
transactionDebugger
.
debug
(
txHash
)
...
...
src/app/tabs/run-tab.js
View file @
7fc2e681
...
@@ -293,6 +293,7 @@ function contractDropdown (appAPI, appEvents, instanceContainer) {
...
@@ -293,6 +293,7 @@ function contractDropdown (appAPI, appEvents, instanceContainer) {
// ADD BUTTONS AT ADDRESS AND CREATE
// ADD BUTTONS AT ADDRESS AND CREATE
function
createInstance
()
{
function
createInstance
()
{
appAPI
.
logMessage
(
'transaction added ...'
)
var
contractNames
=
document
.
querySelector
(
`.
${
css
.
contractNames
.
classNames
[
0
]}
`
)
var
contractNames
=
document
.
querySelector
(
`.
${
css
.
contractNames
.
classNames
[
0
]}
`
)
var
contracts
=
appAPI
.
getContracts
()
var
contracts
=
appAPI
.
getContracts
()
var
contract
=
appAPI
.
getContracts
()[
contractNames
.
children
[
contractNames
.
selectedIndex
].
innerHTML
]
var
contract
=
appAPI
.
getContracts
()[
contractNames
.
children
[
contractNames
.
selectedIndex
].
innerHTML
]
...
@@ -300,7 +301,7 @@ function contractDropdown (appAPI, appEvents, instanceContainer) {
...
@@ -300,7 +301,7 @@ function contractDropdown (appAPI, appEvents, instanceContainer) {
var
args
=
createButtonInput
.
value
var
args
=
createButtonInput
.
value
txFormat
.
buildData
(
contract
,
contracts
,
true
,
constructor
,
args
,
appAPI
.
udapp
(),
(
error
,
data
)
=>
{
txFormat
.
buildData
(
contract
,
contracts
,
true
,
constructor
,
args
,
appAPI
.
udapp
(),
(
error
,
data
)
=>
{
if
(
!
error
)
{
if
(
!
error
)
{
appAPI
.
logMessage
(
'T
ransaction added ...'
)
// appAPI.logMessage('t
ransaction added ...')
txExecution
.
createContract
(
data
,
appAPI
.
udapp
(),
(
error
,
txResult
)
=>
{
txExecution
.
createContract
(
data
,
appAPI
.
udapp
(),
(
error
,
txResult
)
=>
{
if
(
!
error
)
{
if
(
!
error
)
{
var
isVM
=
executionContext
.
isVM
()
var
isVM
=
executionContext
.
isVM
()
...
@@ -322,6 +323,7 @@ function contractDropdown (appAPI, appEvents, instanceContainer) {
...
@@ -322,6 +323,7 @@ function contractDropdown (appAPI, appEvents, instanceContainer) {
modalDialogCustom
.
alert
(
error
)
modalDialogCustom
.
alert
(
error
)
}
}
})
})
// appAPI.logMessage('transaction added ...')
}
}
function
loadFromAddress
(
appAPI
)
{
function
loadFromAddress
(
appAPI
)
{
...
...
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