Skip to content

Commit

Permalink
change type field rawdata to interface
Browse files Browse the repository at this point in the history
change type field data to json.RawMessage
  • Loading branch information
daniildulin committed Apr 16, 2019
1 parent 4779585 commit df5e2e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ type Transaction struct {
Type uint8 `json:"type"`
Hash string `json:"hash"`
ServiceData string `json:"service_data"`
Data interface{} `json:"data"`
RawData json.RawMessage `json:"-" sql:"-"`
Data json.RawMessage `json:"data"`
RawData interface{} `json:"-" sql:"-"`
Tags map[string]string `json:"tags"`
Payload []byte `json:"payload"`
RawTx []byte `json:"raw_tx"`
Expand Down

0 comments on commit df5e2e7

Please sign in to comment.