Skip to content

Commit

Permalink
fix: when a newAsset proposal fail, properly reject the asset
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremy Letang <[email protected]>
  • Loading branch information
jeremyletang committed Apr 25, 2024
1 parent b4941ac commit 391f37f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/governance/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ func (e *Engine) OnTick(ctx context.Context, t time.Time) ([]*ToEnact, []*VoteCl
// state in the asset engine
switch v.Terms.Change.GetTermType() {
case types.ProposalTermsTypeNewAsset:
e.assets.SetRejected(ctx, p.ID)
e.assets.SetRejected(ctx, v.ID)
}
}
}
Expand Down

0 comments on commit 391f37f

Please sign in to comment.