Skip to content

Commit 377840a

Browse files
committed
fix: getEmitterCapObjectId can return undefined
1 parent d3c541f commit 377840a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

clients/js/src/cmds/sui/setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ export const addSetupCommands: YargsAddCommandsFn = (y: typeof yargs) =>
235235
const getEmitterCapObjectId = async (
236236
client: SuiGrpcClient,
237237
tokenBridgeStateObjectId: string
238-
): Promise<string> => {
238+
): Promise<string | undefined> => {
239239
const fields = await getObjectFields(client, tokenBridgeStateObjectId);
240240
return fields?.emitter_cap?.id;
241241
};

0 commit comments

Comments
 (0)