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
b89076fa
Commit
b89076fa
authored
Jun 26, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added amount to contract during debugging
parent
b3367ec0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
debugger.qml
ethereal/assets/debugger/debugger.qml
+3
-3
debugger.go
ethereal/ui/debugger.go
+9
-5
No files found.
ethereal/assets/debugger/debugger.qml
View file @
b89076fa
...
...
@@ -10,9 +10,9 @@ ApplicationWindow {
visible
:
false
title
:
"IceCREAM"
minimumWidth
:
1280
minimumHeight
:
9
00
minimumHeight
:
7
00
width
:
1290
height
:
9
00
height
:
7
00
property
alias
codeText
:
codeEditor
.
text
property
alias
dataText
:
rawDataField
.
text
...
...
@@ -56,7 +56,7 @@ ApplicationWindow {
Rectangle
{
color
:
"#00000000"
height
:
50
0
height
:
33
0
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
...
...
ethereal/ui/debugger.go
View file @
b89076fa
...
...
@@ -96,16 +96,20 @@ func (self *DebuggerWindow) Debug(valueStr, gasStr, gasPriceStr, scriptStr, data
self
.
win
.
Root
()
.
Call
(
"setAsm"
,
str
)
}
gas
:=
ethutil
.
Big
(
gasStr
)
gasPrice
:=
ethutil
.
Big
(
gasPriceStr
)
// Contract addr as test address
keyPair
:=
ethutil
.
GetKeyRing
()
.
Get
(
0
)
callerTx
:=
ethchain
.
NewContractCreationTx
(
ethutil
.
Big
(
valueStr
),
gas
,
gasPrice
,
script
)
var
(
gas
=
ethutil
.
Big
(
gasStr
)
gasPrice
=
ethutil
.
Big
(
gasPriceStr
)
value
=
ethutil
.
Big
(
valueStr
)
// Contract addr as test address
keyPair
=
ethutil
.
GetKeyRing
()
.
Get
(
0
)
callerTx
=
ethchain
.
NewContractCreationTx
(
ethutil
.
Big
(
valueStr
),
gas
,
gasPrice
,
script
)
)
callerTx
.
Sign
(
keyPair
.
PrivateKey
)
state
:=
self
.
lib
.
eth
.
BlockChain
()
.
CurrentBlock
.
State
()
account
:=
self
.
lib
.
eth
.
StateManager
()
.
TransState
()
.
GetAccount
(
keyPair
.
Address
())
contract
:=
ethchain
.
MakeContract
(
callerTx
,
state
)
contract
.
Amount
=
value
callerClosure
:=
ethchain
.
NewClosure
(
account
,
contract
,
script
,
state
,
gas
,
gasPrice
)
block
:=
self
.
lib
.
eth
.
BlockChain
()
.
CurrentBlock
...
...
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