Skip to content

Commit

Permalink
Merge pull request #404 from klim0v/v1.2
Browse files Browse the repository at this point in the history
fix events
  • Loading branch information
danil-lashin authored Sep 23, 2020
2 parents 5d926bf + fa1fa16 commit 2d1d97b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions api/v2/service/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ func (s *Service) Events(ctx context.Context, req *pb.EventsRequest) (*pb.Events
t = "minter/SlashEvent"
case *eventsdb.UnbondEvent:
t = "minter/UnbondEvent"
case *eventsdb.StakeKickEvent:
t = "minter/StakeKickEvent"
default:
t = "Undefined Type"
}
Expand Down
2 changes: 1 addition & 1 deletion core/events/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func RegisterAminoEvents(codec *amino.Codec) {
codec.RegisterConcrete(UnbondEvent{},
"minter/UnbondEvent", nil)
codec.RegisterConcrete(StakeKickEvent{},
"minter/StakeKick", nil)
"minter/StakeKickEvent", nil)
}

type Event interface {
Expand Down
2 changes: 2 additions & 0 deletions core/transaction/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ import (
"math/big"
)

// TxType of transaction is determined by a single byte.
type TxType byte

type SigType byte

const (
Expand Down

0 comments on commit 2d1d97b

Please sign in to comment.