Skip to content

Commit

Permalink
update aptos instanceof checker
Browse files Browse the repository at this point in the history
  • Loading branch information
barnjamin committed Jul 1, 2024
1 parent 0d96e4e commit 3007bfb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions platforms/aptos/src/address.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import type { Address } from "@wormhole-foundation/sdk-connect";
import { UniversalAddress, encoding, registerNative } from "@wormhole-foundation/sdk-connect";

import { APTOS_SEPARATOR } from "./constants.js";
import { AptosPlatform } from "./platform.js";
import type { AnyAptosAddress } from "./types.js";
import { _platform, isValidAptosType } from "./types.js";

Expand Down Expand Up @@ -74,7 +73,7 @@ export class AptosAddress implements Address {
}

static instanceof(address: any): address is AptosAddress {
return address.platform === AptosPlatform._platform;
return address.constructor.platform === AptosAddress.platform;
}

equals(other: AptosAddress | UniversalAddress): boolean {
Expand Down

0 comments on commit 3007bfb

Please sign in to comment.