From 391f37ff78d71546e255b184fc9a78535d8ecd80 Mon Sep 17 00:00:00 2001 From: Jeremy Letang Date: Thu, 25 Apr 2024 14:36:42 +0100 Subject: [PATCH] fix: when a newAsset proposal fail, properly reject the asset Signed-off-by: Jeremy Letang --- core/governance/engine.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/governance/engine.go b/core/governance/engine.go index a2c8ca2bb6..b76a649ff7 100644 --- a/core/governance/engine.go +++ b/core/governance/engine.go @@ -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) } } }