Skip to content

Commit

Permalink
sdk: use Layout instead of LayoutItem (#556)
Browse files Browse the repository at this point in the history
The Layout type is not exported in newer versions of the Wormhole SDK,
so we are removing its use now to avoid the issue in the future.
  • Loading branch information
kev1n-peters authored Nov 22, 2024
1 parent a1c11ef commit 66f8e41
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sdk/definitions/src/layouts/transfer.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {
CustomConversion,
Layout,
LayoutItem,
LayoutToType,
} from "@wormhole-foundation/sdk-base";
import { layoutItems } from "@wormhole-foundation/sdk-definitions";
Expand Down Expand Up @@ -47,7 +46,7 @@ const optionalAdditionalPayloadItem = {
return new Uint8Array();
},
} satisfies CustomConversion<Uint8Array, Uint8Array>,
} as const satisfies LayoutItem;
} as const satisfies Layout;

export type NativeTokenTransfer = LayoutToType<
typeof nativeTokenTransferLayout
Expand Down

0 comments on commit 66f8e41

Please sign in to comment.