diff --git a/.changeset/swift-tips-know.md b/.changeset/swift-tips-know.md new file mode 100644 index 0000000000..1d82d29154 --- /dev/null +++ b/.changeset/swift-tips-know.md @@ -0,0 +1,5 @@ +--- +"@hyperlane-xyz/sdk": patch +--- + +Use implementation instead of admin slot for isProxy diff --git a/typescript/sdk/src/deploy/proxy.ts b/typescript/sdk/src/deploy/proxy.ts index 8749e433a9..7d0763010b 100644 --- a/typescript/sdk/src/deploy/proxy.ts +++ b/typescript/sdk/src/deploy/proxy.ts @@ -69,8 +69,8 @@ export async function isProxy( provider: ethers.providers.Provider, proxy: Address, ): Promise { - const admin = await proxyAdmin(provider, proxy); - return !eqAddress(admin, ethers.constants.AddressZero); + const implementation = await proxyImplementation(provider, proxy); + return !eqAddress(implementation, ethers.constants.AddressZero); } export function proxyAdminUpdateTxs(