Open rootulp opened 1 month ago
Discussion w/ @evan-forbes
The SDK ctx has these methods:
https://github.com/celestiaorg/cosmos-sdk/blob/8c98dec8632ee91701b5676530c90292a6c193ee/types/context.go#L60-L61
The SDK ctx doesn't have methods to determine if the ctx is inside PrepareProposal or ProcessProposal
Add methods for IsPrepareProposal and IsProcessProposal.
IsPrepareProposal
IsProcessProposal
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
andIsProcessProposal
.