Skip to content

Commit

Permalink
fixed voting for state transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
olegfomenko committed Nov 22, 2023
1 parent b22be30 commit 0c43197
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion x/oraclemanager/keeper/msg_server_vote.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ func (k Keeper) collectVotes(ctx sdk.Context, index string) error {
operation, _ := k.rarimo.GetOperation(ctx, index)
// Votes colelcting can be different for different types of operation.
switch operation.OperationType {
case rarimotypes.OpType_TRANSFER, rarimotypes.OpType_IDENTITY_DEFAULT_TRANSFER, rarimotypes.OpType_IDENTITY_GIST_TRANSFER:
case
rarimotypes.OpType_TRANSFER,
rarimotypes.OpType_IDENTITY_DEFAULT_TRANSFER,
rarimotypes.OpType_IDENTITY_GIST_TRANSFER,
rarimotypes.OpType_IDENTITY_STATE_TRANSFER:
return k.collectOperationVotes(ctx, operation)
default:
// Nothing to do
Expand Down

0 comments on commit 0c43197

Please sign in to comment.