Skip to content

Demo fails typecheck with latest Wormhole SDK #82

Description

@github-actions

What happened
The scheduled canary workflow detected a typecheck or build failure when testing with the latest version of @wormhole-foundation/sdk.

Commit: 43fcab5

TypeScript errors:

> demo-ts-sdk@1.0.0 typecheck
> tsc --noEmit

src/scripts/token-transfer.ts(126,13): error TS2367: This comparison appears to be unintentional because the types '"ExecutorTokenBridge"' and '"AutomaticTokenBridge"' have no overlap.
src/scripts/token-transfer.ts(133,4): error TS2345: Argument of type 'bigint | undefined' is not assignable to parameter of type 'Uint8Array<ArrayBufferLike> | undefined'.
  Type 'bigint' is not assignable to type 'Uint8Array<ArrayBufferLike>'.
src/scripts/token-transfer.ts(171,4): error TS2345: Argument of type '(BaseTokenTransferDetails & { protocol: "TokenBridge"; payload?: Uint8Array<ArrayBufferLike> | undefined; }) | (BaseTokenTransferDetails & { ...; })' is not assignable to parameter of type 'QuoteTransferDetails'.
  Type 'BaseTokenTransferDetails & { protocol: "AutomaticTokenBridge"; nativeGas?: bigint | undefined; }' is not assignable to type 'QuoteTransferDetails'.
    Type 'BaseTokenTransferDetails & { protocol: "AutomaticTokenBridge"; nativeGas?: bigint | undefined; }' is not assignable to type 'BaseQuoteDetails & { protocol: "ExecutorTokenBridge"; msgValue: bigint; gasLimit: bigint; nativeGas?: bigint | undefined; referrerFee?: { transferTokenFee: bigint; nativeTokenFee: bigint; referrer: ChainAddress; } | undefined; }'.
      Type 'BaseTokenTransferDetails & { protocol: "AutomaticTokenBridge"; nativeGas?: bigint | undefined; }' is missing the following properties from type '{ protocol: "ExecutorTokenBridge"; msgValue: bigint; gasLimit: bigint; nativeGas?: bigint | undefined; referrerFee?: { transferTokenFee: bigint; nativeTokenFee: bigint; referrer: ChainAddress; } | undefined; }': msgValue, gasLimit

This issue was created automatically by the Canary CI job.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions