diff --git a/examples/interop/common/mainchain_registration.ts b/examples/interop/common/mainchain_registration.ts index cdd2bb1ea2a..939757f5d1c 100644 --- a/examples/interop/common/mainchain_registration.ts +++ b/examples/interop/common/mainchain_registration.ts @@ -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<{ + transactionId: string; + }>('chainConnector_authorize', { + enable: true, + password: 'lisk', + }); + console.log('Authorize Mainchain completed, result:', authorizeMainchainResult); + process.exit(0); }; diff --git a/examples/interop/pos-mainchain-fast/config/scripts/sidechain_registration.ts b/examples/interop/pos-mainchain-fast/config/scripts/sidechain_registration.ts index 082deab672f..7e0d09cdefa 100644 --- a/examples/interop/pos-mainchain-fast/config/scripts/sidechain_registration.ts +++ b/examples/interop/pos-mainchain-fast/config/scripts/sidechain_registration.ts @@ -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 completed, result:', authorizeSideChainResult); } process.exit(0);