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
a955c43b
Commit
a955c43b
authored
Sep 23, 2015
by
chriseth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11 from chriseth/someBugFixes
Some bug fixes
parents
086e1fdd
3f7274c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
index.html
index.html
+6
-5
No files found.
index.html
View file @
a955c43b
...
...
@@ -262,9 +262,8 @@ input[readonly] {
<h1>
Solidity realtime
<br/>
compiler and runtime
</h1>
<div
class=
"info"
>
<p>
Version:
<span
id=
"version"
>
(loading)
</span><br/>
Execution environment does not connect to any node, everyhing is in-memory only.
<br/>
<strong>
Note:
</strong>
If Chrome/Chromium reports
"
Uncaught JavaScript Exception
"
,
enable the debug console (Ctrl+Shift+i) and reload.
</p>
Execution environment does not connect to any node, everyhing is local and in memory only.
<br/>
<code>
tx.origin =
<span
id=
"txorigin"
/></code></p>
</div>
<div
id=
"optimizeBox"
>
<input
id=
"editorWrap"
type=
"checkbox"
><label
for=
"editorWrap"
>
Text Wrap
</label>
...
...
@@ -407,12 +406,13 @@ input[readonly] {
var
detailsOpen
=
{};
var
renderError
=
function
(
message
)
{
var
$output
=
$
(
'#output'
).
empty
()
$
(
'#output'
)
.
empty
()
.
append
(
$
(
'<pre class="error"></pre>'
).
text
(
message
));
var
err
=
message
.
match
(
/^:
([
0-9
]
*
)
:
([
0-9
]
*
)
/
)
if
(
err
&&
err
.
length
)
{
var
errLine
=
parseInt
(
err
[
1
],
10
)
-
1
;
var
errCol
=
err
[
2
]
?
parseInt
(
err
[
2
],
10
)
:
0
;
$output
.
append
(
$
(
'<pre class="error"></pre>'
).
text
(
message
));
editor
.
getSession
().
setAnnotations
([{
row
:
errLine
,
column
:
errCol
,
...
...
@@ -575,6 +575,7 @@ input[readonly] {
var
secretKey
=
'3cd7232cd6f3fc66a57a6bedc1a8ed6c228fff0a327e169c2bcc5e869ed49511'
var
publicKey
=
'0406cc661590d48ee972944b35ad13ff03c7876eae3fd191e8a2f77311b0a3c6613407b5005e63d7d8d76b89d5f900cde691497688bb281e07a5052ff61edebdc0'
var
address
=
ethUtil
.
pubToAddress
(
new
Buffer
(
publicKey
,
'hex'
));
$
(
'#txorigin'
).
text
(
'0x'
+
address
.
toString
(
'hex'
));
var
account
=
new
EthVm
.
Account
();
account
.
balance
=
'f00000000000000001'
;
var
nonce
=
0
;
...
...
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