Skip to content

Commit ac0b240

Browse files
committed
chore: update proposal type to include expedited and failedReason field
1 parent cb30098 commit ac0b240

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

packages/sdk-ts/src/client/chain/transformers/ChainGrpcGovTransformer.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ export class ChainGrpcGovTransformer {
177177
? Math.floor(proposal.submitTime!.getTime() / 1000)
178178
: 0,
179179
status: proposal.status,
180+
expedited: proposal.expedited,
181+
failedReason: proposal.failedReason,
180182
finalTallyResult:
181183
ChainGrpcGovTransformer.grpcTallyResultToTallyResult(finalTallyResult),
182184
depositEndTime: proposal.depositEndTime

packages/sdk-ts/src/client/chain/types/gov.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ export interface Proposal {
2424
content: any
2525
type: string
2626
status: CosmosGovV1Gov.ProposalStatus
27+
expedited: boolean
28+
failedReason: string
2729
submitTime: number
2830
finalTallyResult: GrpcTallyResult | undefined
2931
totalDeposits: Coin[]

packages/wallets/wallet-cosmos/src/wallet.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export class CosmosWallet {
138138
public async getOfflineAminoSigner(): Promise<OfflineAminoSigner> {
139139
const { chainId, wallet } = this
140140

141-
if ([Wallet.Keplr, Wallet.OWallet].includes(wallet)) {
141+
if (![Wallet.Keplr, Wallet.OWallet].includes(wallet)) {
142142
throw new CosmosWalletException(
143143
new Error(
144144
`getOfflineAminoSigner is not support on ${capitalize(wallet)}`,
@@ -418,9 +418,9 @@ export class CosmosWallet {
418418
const { wallet } = this
419419
const cosmosWallet = await this.getCosmosWallet()
420420

421-
if ([Wallet.Keplr, Wallet.OWallet].includes(wallet)) {
421+
if (![Wallet.Keplr, Wallet.OWallet].includes(wallet)) {
422422
throw new CosmosWalletException(
423-
new Error(`enableGasCheck is not support on ${capitalize(wallet)}`),
423+
new Error(`EnableGasCheck is not support on ${capitalize(wallet)}`),
424424
)
425425
}
426426

0 commit comments

Comments
 (0)