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
62559ac3
Commit
62559ac3
authored
Jul 04, 2015
by
Taylor Gerring
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup
parent
30afd376
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
parsing.go
rpc/api/parsing.go
+4
-4
No files found.
rpc/api/parsing.go
View file @
62559ac3
...
@@ -421,11 +421,11 @@ func NewReceiptRes(rec *types.Receipt) *ReceiptRes {
...
@@ -421,11 +421,11 @@ func NewReceiptRes(rec *types.Receipt) *ReceiptRes {
var
v
=
new
(
ReceiptRes
)
var
v
=
new
(
ReceiptRes
)
v
.
TransactionHash
=
newHexData
(
rec
.
TxHash
)
v
.
TransactionHash
=
newHexData
(
rec
.
TxHash
)
// v.TransactionIndex = newHexNum(input)
// transaction
// v.TransactionIndex = newHexNum(input)
// v.BlockNumber = newHexNum(input)
// transaction
// v.BlockNumber = newHexNum(input)
// v.BlockHash = newHexData(input)
//transaction
// v.BlockHash = newHexData(input)
v
.
CumulativeGasUsed
=
newHexNum
(
rec
.
CumulativeGasUsed
)
v
.
CumulativeGasUsed
=
newHexNum
(
rec
.
CumulativeGasUsed
)
// v.GasUsed = newHexNum(input)
// CumulativeGasUsed (blocknum-1)
// v.GasUsed = newHexNum(input)
// If the ContractAddress is 20 0x0 bytes, assume it is not a contract creation
// If the ContractAddress is 20 0x0 bytes, assume it is not a contract creation
if
bytes
.
Compare
(
rec
.
ContractAddress
.
Bytes
(),
bytes
.
Repeat
([]
byte
{
0
},
20
))
!=
0
{
if
bytes
.
Compare
(
rec
.
ContractAddress
.
Bytes
(),
bytes
.
Repeat
([]
byte
{
0
},
20
))
!=
0
{
v
.
ContractAddress
=
newHexData
(
rec
.
ContractAddress
)
v
.
ContractAddress
=
newHexData
(
rec
.
ContractAddress
)
...
...
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