Skip to content

Commit

Permalink
fix ledger wallet creation (#461)
Browse files Browse the repository at this point in the history
* fix

* format
  • Loading branch information
augustbleeds committed Jun 11, 2024
1 parent fa64980 commit 502adad
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions packages-ts/starknet-gauntlet-multisig/src/wrapper/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,16 @@ export const wrapCommand = <UI, CI>(
static create = async (flags, args) => {
const c = new MsigCommand(flags, args)

c.contractAddress = args[0]
c.command = await registeredCommand.create(flags, [c.contractAddress])

const env = await deps.makeEnv(flags)

c.wallet = await deps.makeWallet(env)
c.provider = deps.makeProvider(env.providerUrl, c.wallet)
c.contractAddress = args[0]
const { wallet, provider, account } = c.command
c.wallet = wallet
c.provider = provider
c.account = account

c.account = env.account
c.multisigAddress = env.multisig
const loadResult = contractLoader()
Expand All @@ -106,8 +111,6 @@ export const wrapCommand = <UI, CI>(
contract: {},
}

c.command = await registeredCommand.create(flags, [c.contractAddress])

c.initialState = await c.fetchMultisigState(c.multisigAddress, c.input.user.proposalId)

return c
Expand Down

0 comments on commit 502adad

Please sign in to comment.