Skip to content

Commit 66f8e41

Browse files
authored
sdk: use Layout instead of LayoutItem (#556)
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.
1 parent a1c11ef commit 66f8e41

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sdk/definitions/src/layouts/transfer.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import {
22
CustomConversion,
33
Layout,
4-
LayoutItem,
54
LayoutToType,
65
} from "@wormhole-foundation/sdk-base";
76
import { layoutItems } from "@wormhole-foundation/sdk-definitions";
@@ -47,7 +46,7 @@ const optionalAdditionalPayloadItem = {
4746
return new Uint8Array();
4847
},
4948
} satisfies CustomConversion<Uint8Array, Uint8Array>,
50-
} as const satisfies LayoutItem;
49+
} as const satisfies Layout;
5150

5251
export type NativeTokenTransfer = LayoutToType<
5352
typeof nativeTokenTransferLayout

0 commit comments

Comments
 (0)