Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions packages/protocol-kit/src/contracts/contractInstances.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export async function getSafeContractInstance(
)
break
default:
throw new Error('Invalid Safe version')
throw new Error('Invalid Safe version getSafeContractInstance ' + safeVersion)
}

await safeContractInstance.init()
Expand Down Expand Up @@ -164,7 +164,7 @@ export async function getCompatibilityFallbackHandlerContractInstance(
)
break
default:
throw new Error('Invalid Safe version')
throw new Error('Invalid Safe version getCompatibilityFallbackHandlerContractInstance ' + safeVersion)
}

await compatibilityFallbackHandlerInstance.init()
Expand Down Expand Up @@ -213,7 +213,7 @@ export async function getMultiSendContractInstance(
)
break
default:
throw new Error('Invalid Safe version')
throw new Error('Invalid Safe version getMultiSendContractInstance ' + safeVersion)
}

await multiSendContractInstance.init()
Expand Down Expand Up @@ -254,7 +254,7 @@ export async function getMultiSendCallOnlyContractInstance(
)
break
default:
throw new Error('Invalid Safe version')
throw new Error('Invalid Safe version getMultiSendCallOnlyContractInstance ' + safeVersion)
}

await multiSendCallOnlyContractInstance.init()
Expand Down Expand Up @@ -316,7 +316,7 @@ export async function getSafeProxyFactoryContractInstance(
)
break
default:
throw new Error('Invalid Safe version')
throw new Error('Invalid Safe version getSafeProxyFactoryContractInstance ' + safeVersion)
}

await safeProxyFactoryContractInstance.init()
Expand Down Expand Up @@ -354,7 +354,7 @@ export async function getSignMessageLibContractInstance(
)
break
default:
throw new Error('Invalid Safe version')
throw new Error('Invalid Safe version getSignMessageLibContractInstance ' + safeVersion)
}

await signMessageLibContractInstance.init()
Expand Down Expand Up @@ -395,7 +395,7 @@ export async function getCreateCallContractInstance(
)
break
default:
throw new Error('Invalid Safe version')
throw new Error('Invalid Safe version getCreateCallContractInstance ' + safeVersion)
}

await createCallContractInstance.init()
Expand Down Expand Up @@ -433,7 +433,7 @@ export async function getSimulateTxAccessorContractInstance(
)
break
default:
throw new Error('Invalid Safe version')
throw new Error('Invalid Safe version getSimulateTxAccessorContractInstance ' + safeVersion)
}

await simulateTxAccessorContractInstance.init()
Expand Down Expand Up @@ -468,7 +468,7 @@ export async function getSafeWebAuthnSignerFactoryContractInstance(
return safeWebAuthnSignerFactoryContractInstance

default:
throw new Error('Invalid Safe version')
throw new Error('Invalid Safe version getSafeWebAuthnSignerFactoryContractInstance' + safeVersion)
}
}

Expand Down Expand Up @@ -498,6 +498,6 @@ export async function getSafeWebAuthnSharedSignerContractInstance(
return safeWebAuthnSharedSignerContractInstance

default:
throw new Error('Invalid Safe version')
throw new Error('Invalid Safe version getSafeWebAuthnSharedSignerContractInstance ' + safeVersion)
}
}
Loading