Skip to content

Commit

Permalink
fix: add template argument
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Goulding <[email protected]>
  • Loading branch information
ryandgoulding committed Feb 21, 2024
1 parent 94de06b commit eab3a8c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/devtools-evm-hardhat/src/transactions/signer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type { OmniSignerFactory } from '@layerzerolabs/devtools'
import { GnosisOmniSignerEVM, OmniSignerEVM } from '@layerzerolabs/devtools-evm'
import { createProviderFactory } from '@/provider'
import { createGetHreByEid } from '@/runtime'
import { ConnectSafeConfigWithSafeAddress } from '@safe-global/protocol-kit'

export const createSignerFactory = (
addressOrIndex?: string | number,
Expand All @@ -20,7 +21,7 @@ export const createGnosisSignerFactory = (
addressOrIndex?: string | number,
providerFactory = createProviderFactory(),
networkEnvironmentFactory = createGetHreByEid()
): OmniSignerFactory<GnosisOmniSignerEVM> => {
): OmniSignerFactory<GnosisOmniSignerEVM<ConnectSafeConfigWithSafeAddress>> => {
return pMemoize(async (eid) => {
const provider = await providerFactory(eid)
const signer = provider.getSigner(addressOrIndex)
Expand All @@ -30,6 +31,6 @@ export const createGnosisSignerFactory = (
if (!safeConfig) {
throw new Error('No safe config found for the current network')
}
return new GnosisOmniSignerEVM(eid, signer, safeConfig.safeUrl, safeConfig)
return new GnosisOmniSignerEVM<ConnectSafeConfigWithSafeAddress>(eid, signer, safeConfig.safeUrl, safeConfig)
})
}

0 comments on commit eab3a8c

Please sign in to comment.