Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Update interop example #8994

Merged
merged 5 commits into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions examples/interop/common/mainchain_registration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,5 +123,14 @@ export const registerMainchain = async (
});

console.log('Sent mainchain registration transaction. Result from transaction pool is: ', result);

const authorizeMainchainResult = await mainchainClient.invoke<{
Phanco marked this conversation as resolved.
Show resolved Hide resolved
transactionId: string;
}>('chainConnector_authorize', {
enable: true,
password: 'lisk',
});
console.log('Authorize Mainchain:', authorizeMainchainResult);
ishantiw marked this conversation as resolved.
Show resolved Hide resolved

process.exit(0);
};
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@ import { sidechainRegParams } from 'lisk-framework';
// Wait for 2 seconds before next registration
await wait(WAIT_PERIOD);
}

const authorizeSideChainResult = await sidechainClient.invoke<{
transactionId: string;
}>('chainConnector_authorize', {
enable: true,
password: 'lisk',
});
console.log('Authorize Sidechain:', authorizeSideChainResult);
ishantiw marked this conversation as resolved.
Show resolved Hide resolved
}

process.exit(0);
Expand Down