Skip to content

Commit 9140cf0

Browse files
authored
Merge pull request #2 from yfwss/master
v2
2 parents 08b169b + 8db4a31 commit 9140cf0

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module github.com/yfwss/etherscan-api
1+
module github.com/yfwss/etherscan-api/v2
22

33
go 1.13

response.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ type Log struct {
144144
// list of topics provided by the contract.
145145
Topics []string `json:"topics"`
146146
// supplied by the contract, usually ABI-encoded
147-
Data []byte `json:"data"`
147+
Data string `json:"data"`
148148

149149
// Derived fields. These fields are filled in by the node
150150
// but not secured by consensus.
@@ -157,8 +157,6 @@ type Log struct {
157157
TxHash string `json:"transactionHash"`
158158
// index of the transaction in the block
159159
TxIndex string `json:"transactionIndex"`
160-
// hash of the block in which the transaction was included
161-
BlockHash string `json:"blockHash"`
162160
// index of the log in the block
163161
Index string `json:"logIndex"`
164162
}

0 commit comments

Comments
 (0)