Skip to content

Commit

Permalink
Use proper manager type
Browse files Browse the repository at this point in the history
  • Loading branch information
adairrr committed Aug 15, 2024
1 parent 185667d commit 6e81ca4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/legacy/clients/AbstractAccountClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
} from '../../codegen/abstract'

type ManagerModuleInfo = ManagerTypes.ManagerModuleInfo
type GovernanceDetails = ManagerTypes.GovernanceDetailsForString
type CosmosMsgForEmpty = ProxyTypes.CosmosMsgForEmpty
import { ABSTRACT_CONSTANTS } from '../constants'
import {
Expand All @@ -35,7 +36,6 @@ import {
} from '../generics/adapter/Adapter.msg-factory'
type ModuleReference = VersionControlTypes.ModuleReference
import semver from 'semver/preload'
import { GovernanceDetailsForAddr } from '../../../.tsup/declaration/account/manager/Manager.types'
import { jsonToBinary } from '../../utils/encoding'
import { ContractMsg, EncodedMsg } from '../messages'
import { type AbstractClient, type AbstractQueryClient } from './AbstractClient'
Expand Down Expand Up @@ -246,7 +246,7 @@ export class AbstractAccountQueryClient implements IAbstractAccountQueryClient {

// > 0.23.0 returns the full governance type
if (semver.gte(version, '0.23.0')) {
const governance = owner as unknown as GovernanceDetailsForAddr
const governance = owner as unknown as GovernanceDetails

this._owner = match(governance)
.with({ Monarchy: { monarch: P.select() } }, (monarch) => monarch)
Expand Down

0 comments on commit 6e81ca4

Please sign in to comment.