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
d4f9daa6
Commit
d4f9daa6
authored
May 28, 2014
by
Maran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor hex encode and remove coupling of popup to main window
parent
1eda1d25
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
wallet.qml
ethereal/assets/qml/wallet.qml
+1
-2
ui_lib.go
ethereal/ui/ui_lib.go
+1
-2
No files found.
ethereal/assets/qml/wallet.qml
View file @
d4f9daa6
...
@@ -342,8 +342,6 @@ ApplicationWindow {
...
@@ -342,8 +342,6 @@ ApplicationWindow {
property
var
block
property
var
block
width
:
root
.
width
width
:
root
.
width
height
:
240
height
:
240
x
:
root
.
x
y
:
root
.
y
+
root
.
height
Component
{
Component
{
id
:
blockDetailsDelegate
id
:
blockDetailsDelegate
Rectangle
{
Rectangle
{
...
@@ -442,6 +440,7 @@ ApplicationWindow {
...
@@ -442,6 +440,7 @@ ApplicationWindow {
text
:
"Contract"
text
:
"Contract"
anchors.top
:
contractLabel
.
bottom
anchors.top
:
contractLabel
.
bottom
anchors.left
:
parent
.
left
anchors.left
:
parent
.
left
anchors.bottom
:
popup
.
bottom
wrapMode
:
Text
.
Wrap
wrapMode
:
Text
.
Wrap
width
:
parent
.
width
-
30
width
:
parent
.
width
-
30
height
:
80
height
:
80
...
...
ethereal/ui/ui_lib.go
View file @
d4f9daa6
...
@@ -2,7 +2,6 @@ package ethui
...
@@ -2,7 +2,6 @@ package ethui
import
(
import
(
"bitbucket.org/kardianos/osext"
"bitbucket.org/kardianos/osext"
"encoding/hex"
"github.com/ethereum/eth-go"
"github.com/ethereum/eth-go"
"github.com/ethereum/eth-go/ethchain"
"github.com/ethereum/eth-go/ethchain"
"github.com/ethereum/eth-go/ethutil"
"github.com/ethereum/eth-go/ethutil"
...
@@ -94,7 +93,7 @@ func (self *UiLib) StartDbWithContractAndData(contractHash, data string) {
...
@@ -94,7 +93,7 @@ func (self *UiLib) StartDbWithContractAndData(contractHash, data string) {
dbWindow
:=
NewDebuggerWindow
(
self
)
dbWindow
:=
NewDebuggerWindow
(
self
)
object
:=
self
.
eth
.
StateManager
()
.
CurrentState
()
.
GetStateObject
(
ethutil
.
FromHex
(
contractHash
))
object
:=
self
.
eth
.
StateManager
()
.
CurrentState
()
.
GetStateObject
(
ethutil
.
FromHex
(
contractHash
))
if
len
(
object
.
Script
())
>
0
{
if
len
(
object
.
Script
())
>
0
{
dbWindow
.
SetCode
(
"0x"
+
hex
.
EncodeToString
(
object
.
Script
()))
dbWindow
.
SetCode
(
"0x"
+
ethutil
.
Hex
(
object
.
Script
()))
}
}
dbWindow
.
SetData
(
data
)
dbWindow
.
SetData
(
data
)
...
...
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