Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
71defc11
Commit
71defc11
authored
May 08, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed closure
parent
53eb59ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
samplecoin.html
ethereal/assets/samplecoin/samplecoin.html
+2
-3
ui_lib.go
ethereal/ui/ui_lib.go
+1
-1
No files found.
ethereal/assets/samplecoin/samplecoin.html
View file @
71defc11
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
var
jefcoinAddr
=
"
3dff537f51350239abc95c76a5864aa605259e7d
"
var
jefcoinAddr
=
"
136060151ebf11cd82456de1ab9406cc2a762b36
"
var
mAddr
=
""
var
mAddr
=
""
function
createTransaction
()
{
function
createTransaction
()
{
...
@@ -27,9 +27,8 @@ function init() {
...
@@ -27,9 +27,8 @@ function init() {
eth
.
set
({
width
:
500
});
eth
.
set
({
width
:
500
});
eth
.
getKey
(
function
(
sec
)
{
eth
.
getKey
(
function
(
sec
)
{
mAddr
=
sec
;
eth
.
getSecretToAddress
(
sec
,
function
(
addr
)
{
eth
.
getSecretToAddress
(
sec
,
function
(
addr
)
{
mAddr
=
addr
;
eth
.
getStorageAt
(
jefcoinAddr
,
addr
,
function
(
storage
)
{
eth
.
getStorageAt
(
jefcoinAddr
,
addr
,
function
(
storage
)
{
document
.
querySelector
(
"#current-amount"
).
innerHTML
=
storage
;
document
.
querySelector
(
"#current-amount"
).
innerHTML
=
storage
;
});
});
...
...
ethereal/ui/ui_lib.go
View file @
71defc11
...
@@ -151,7 +151,7 @@ func (ui *UiLib) DebugTx(recipient, valueStr, gasStr, gasPriceStr, data string)
...
@@ -151,7 +151,7 @@ func (ui *UiLib) DebugTx(recipient, valueStr, gasStr, gasPriceStr, data string)
keyPair
:=
ethutil
.
Config
.
Db
.
GetKeys
()[
0
]
keyPair
:=
ethutil
.
Config
.
Db
.
GetKeys
()[
0
]
account
:=
ui
.
eth
.
StateManager
()
.
GetAddrState
(
keyPair
.
Address
())
.
Object
account
:=
ui
.
eth
.
StateManager
()
.
GetAddrState
(
keyPair
.
Address
())
.
Object
c
:=
ethchain
.
MakeContract
(
callerTx
,
state
)
c
:=
ethchain
.
MakeContract
(
callerTx
,
state
)
callerClosure
:=
ethchain
.
NewClosure
(
account
,
c
,
c
.
Script
(),
state
,
ethutil
.
Big
(
gasStr
),
ethutil
.
Big
(
gasPriceStr
)
,
ethutil
.
Big
(
valueStr
)
)
callerClosure
:=
ethchain
.
NewClosure
(
account
,
c
,
c
.
Script
(),
state
,
ethutil
.
Big
(
gasStr
),
ethutil
.
Big
(
gasPriceStr
))
block
:=
ui
.
eth
.
BlockChain
()
.
CurrentBlock
block
:=
ui
.
eth
.
BlockChain
()
.
CurrentBlock
vm
:=
ethchain
.
NewVm
(
state
,
ui
.
eth
.
StateManager
(),
ethchain
.
RuntimeVars
{
vm
:=
ethchain
.
NewVm
(
state
,
ui
.
eth
.
StateManager
(),
ethchain
.
RuntimeVars
{
...
...
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