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
20fd6090
Commit
20fd6090
authored
Apr 10, 2015
by
Jeffrey Wilcke
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #687 from karalabe/develop
xeth: fix #640, panic converting nil recipient to hex.
parents
4de1e160
d1729acd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
gui.go
cmd/mist/gui.go
+5
-7
types.go
xeth/types.go
+5
-2
No files found.
cmd/mist/gui.go
View file @
20fd6090
...
...
@@ -238,13 +238,11 @@ func (gui *Gui) insertTransaction(window string, tx *types.Transaction) {
inout
=
"recv"
}
var
(
ptx
=
xeth
.
NewTx
(
tx
)
send
=
from
.
Hex
()
rec
=
tx
.
To
()
.
Hex
()
)
ptx
.
Sender
=
send
ptx
.
Address
=
rec
ptx
:=
xeth
.
NewTx
(
tx
)
ptx
.
Sender
=
from
.
Hex
()
if
to
:=
tx
.
To
();
to
!=
nil
{
ptx
.
Address
=
to
.
Hex
()
}
if
window
==
"post"
{
//gui.getObjectByName("transactionView").Call("addTx", ptx, inout)
...
...
xeth/types.go
View file @
20fd6090
...
...
@@ -140,8 +140,11 @@ type Transaction struct {
func
NewTx
(
tx
*
types
.
Transaction
)
*
Transaction
{
hash
:=
tx
.
Hash
()
.
Hex
()
receiver
:=
tx
.
To
()
.
Hex
()
if
len
(
receiver
)
==
0
{
var
receiver
string
if
to
:=
tx
.
To
();
to
!=
nil
{
receiver
=
to
.
Hex
()
}
else
{
receiver
=
core
.
AddressFromMessage
(
tx
)
.
Hex
()
}
sender
,
_
:=
tx
.
From
()
...
...
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