Skip to content

Commit 13e2365

Browse files
committed
Update validator model
Transaction Tags is map[string]string
1 parent c3c6b1c commit 13e2365

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

models/transaction.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type Transaction struct {
1919
ServiceData string `json:"service_data"`
2020
Data json.RawMessage `json:"data"`
2121
IData interface{} `json:"-" pg:"-" sql:"-"`
22-
Tags json.RawMessage `json:"tags"`
22+
Tags map[string]string `json:"tags"`
2323
Payload []byte `json:"payload"`
2424
RawTx []byte `json:"raw_tx"`
2525
Block *Block `json:"block"` //Relation has one to Blocks

models/validator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type Validator struct {
1414
CreatedAtBlockID *uint64 `json:"created_at_block_id"`
1515
Status *uint8 `json:"status"`
1616
Commission *uint64 `json:"commission"`
17-
TotalStake *string `json:"total_stake" pg:"type:numeric(70)"`
17+
TotalStake *string `json:"total_stake"`
1818
PublicKey string `json:"public_key" pg:"type:varchar(64)"`
1919
Name *string `json:"name"`
2020
SiteUrl *string `json:"site_url"`

0 commit comments

Comments
 (0)