Skip to content

Commit

Permalink
fix: add decimal moniker (#1260)
Browse files Browse the repository at this point in the history
  • Loading branch information
trkhoi authored Dec 1, 2023
1 parent 2813d3a commit 9f98b65
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- +migrate Up
alter table offchain_tip_bot_tokens add column decimal integer;
-- +migrate Down
alter table offchain_tip_bot_tokens drop column decimal;
1 change: 1 addition & 0 deletions pkg/model/offchain_tip_bot_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ type OffchainTipBotToken struct {
ChainId string `json:"chain_id"`
Address string `json:"address"`
IsNative bool `json:"is_native"`
Decimal int64 `json:"decimal"`
}

func (OffchainTipBotToken) TableName() string {
Expand Down

0 comments on commit 9f98b65

Please sign in to comment.