Skip to content

Commit

Permalink
MOD: utxo add sender
Browse files Browse the repository at this point in the history
  • Loading branch information
pando-ci committed Jun 17, 2021
1 parent 37a82d1 commit 5335048
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ type (
CreatedAt time.Time `json:"created_at,omitempty"`
UpdatedAt time.Time `json:"updated_at,omitempty"`
Version int64 `sql:"NOT NULL" json:"version,omitempty"`
Sender string `sql:"type:char(36)" json:"sender,omitempty"`
TraceID string `sql:"type:char(36)" json:"trace_id,omitempty"`
AssetID string `sql:"type:char(36)" json:"asset_id,omitempty"`
Amount decimal.Decimal `sql:"type:decimal(64,8)" json:"amount,omitempty"`
Expand Down
1 change: 1 addition & 0 deletions service/wallet/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ func convertUTXO(raw *mixin.MultisigUTXO) *core.Output {
return &core.Output{
CreatedAt: raw.CreatedAt,
UpdatedAt: raw.UpdatedAt,
Sender: raw.Sender,
TraceID: raw.UTXOID,
AssetID: raw.AssetID,
Amount: raw.Amount,
Expand Down

0 comments on commit 5335048

Please sign in to comment.