cosmos-sdk icon indicating copy to clipboard operation
cosmos-sdk copied to clipboard

Implement `ctx.IsPrepareProposal` and `ctx.IsProcessProposal`

Open rootulp opened this issue 1 year ago • 3 comments

Motivation

Discussion w/ @evan-forbes

Context

The SDK ctx has these methods:

https://github.com/celestiaorg/cosmos-sdk/blob/8c98dec8632ee91701b5676530c90292a6c193ee/types/context.go#L60-L61

Problem

The SDK ctx doesn't have methods to determine if the ctx is inside PrepareProposal or ProcessProposal

Proposal

Add methods for IsPrepareProposal and IsProcessProposal.

rootulp avatar Oct 17 '24 17:10 rootulp

this is done with v50, can we close this

tac0turtle avatar Apr 04 '25 13:04 tac0turtle

Where? I don't see it here.

rootulp avatar Apr 04 '25 15:04 rootulp

sorry i misread. i thought it was a downsteaming issue but it seems like a new feature

tac0turtle avatar Apr 04 '25 20:04 tac0turtle