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
e692e020
Commit
e692e020
authored
Oct 10, 2015
by
d11e9
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix atAddress output
parent
1861f769
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
universal-dapp.js
assets/js/universal-dapp.js
+3
-3
index.html
index.html
+1
-0
No files found.
assets/js/universal-dapp.js
View file @
e692e020
...
@@ -101,7 +101,7 @@ UniversalDApp.prototype.getCreateInterface = function ($container, contract) {
...
@@ -101,7 +101,7 @@ UniversalDApp.prototype.getCreateInterface = function ($container, contract) {
$createInterface
.
append
(
$close
);
$createInterface
.
append
(
$close
);
}
}
var
$newButton
=
this
.
getInstanceInterface
(
contract
)
var
$newButton
=
this
.
getInstanceInterface
(
contract
)
var
$atButton
=
$
(
'<button class="atAddress"/>'
).
text
(
'At Address'
).
click
(
function
(){
self
.
clickContractAt
(
self
,
$container
,
contract
)
}
);
var
$atButton
=
$
(
'<button class="atAddress"/>'
).
text
(
'At Address'
).
click
(
function
(){
self
.
clickContractAt
(
self
,
$container
.
find
(
'.createContract'
)
,
contract
)
}
);
$createInterface
.
append
(
$atButton
).
append
(
$newButton
);
$createInterface
.
append
(
$atButton
).
append
(
$newButton
);
return
$createInterface
;
return
$createInterface
;
}
}
...
@@ -376,9 +376,9 @@ UniversalDApp.prototype.clickNewContract = function ( self, $contract, contract
...
@@ -376,9 +376,9 @@ UniversalDApp.prototype.clickNewContract = function ( self, $contract, contract
$contract
.
append
(
self
.
getInstanceInterface
(
contract
)
);
$contract
.
append
(
self
.
getInstanceInterface
(
contract
)
);
}
}
UniversalDApp
.
prototype
.
clickContractAt
=
function
(
self
,
$
contrac
t
,
contract
)
{
UniversalDApp
.
prototype
.
clickContractAt
=
function
(
self
,
$
outpu
t
,
contract
)
{
var
address
=
prompt
(
"What Address is this contract at in the Blockchain? ie: '0xdeadbeaf...'"
)
var
address
=
prompt
(
"What Address is this contract at in the Blockchain? ie: '0xdeadbeaf...'"
)
self
.
getInstanceInterface
(
contract
,
address
,
$
contrac
t
);
self
.
getInstanceInterface
(
contract
,
address
,
$
outpu
t
);
}
}
UniversalDApp
.
prototype
.
runTx
=
function
(
data
,
args
,
cb
)
{
UniversalDApp
.
prototype
.
runTx
=
function
(
data
,
args
,
cb
)
{
...
...
index.html
View file @
e692e020
...
@@ -352,6 +352,7 @@ THE SOFTWARE.
...
@@ -352,6 +352,7 @@ THE SOFTWARE.
editor
.
focus
();
editor
.
focus
();
}
}
$
(
'#input'
).
toggle
(
!!
SOL_CACHE_FILE
);
$
(
'#input'
).
toggle
(
!!
SOL_CACHE_FILE
);
$
(
'#output'
).
toggle
(
!!
SOL_CACHE_FILE
);
}
}
function
fileTabTemplate
(
key
)
{
function
fileTabTemplate
(
key
)
{
...
...
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