From 62fe7747aef4085ec09fb1d3a6d4a6ac43df716d Mon Sep 17 00:00:00 2001 From: Khalid Hameed Date: Thu, 9 Nov 2023 17:32:48 +0200 Subject: [PATCH] Revert test for valid params --- .../commands/recover_message.spec.ts | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/framework/test/unit/modules/interoperability/mainchain/commands/recover_message.spec.ts b/framework/test/unit/modules/interoperability/mainchain/commands/recover_message.spec.ts index c9bb4e5206..a1318c19df 100644 --- a/framework/test/unit/modules/interoperability/mainchain/commands/recover_message.spec.ts +++ b/framework/test/unit/modules/interoperability/mainchain/commands/recover_message.spec.ts @@ -507,34 +507,6 @@ describe('MessageRecoveryCommand', () => { }); it('should return status OK for valid params', async () => { - const chainIDLocal = Buffer.from([0, 0, 0, 0]); - ccms = [ - { - nonce: BigInt(0), - module: MODULE_NAME_INTEROPERABILITY, - crossChainCommand: CROSS_CHAIN_COMMAND_REGISTRATION, - sendingChainID: Buffer.from([1, 2, 3, 4]), - receivingChainID: chainIDLocal, - fee: BigInt(1), - status: CCMStatusCode.OK, - params: Buffer.alloc(0), - }, - ]; - ccmsEncoded = ccms.map(ccm => codec.encode(ccmSchema, ccm)); - transactionParams.crossChainMessages = [...ccmsEncoded]; - transactionParams.idxs = appendPrecedingToIndices([1], terminatedChainOutboxSize); - - commandVerifyContext = createCommandVerifyContext(transaction, transactionParams); - commandVerifyContext.params.chainID = chainIDLocal; - - await interopModule.stores - .get(TerminatedOutboxStore) - .set(createStoreGetter(commandVerifyContext.stateStore as any), chainIDLocal, { - outboxRoot, - outboxSize: terminatedChainOutboxSize, - partnerChainInboxSize: 0, - }); - const result = await command.verify(commandVerifyContext); expect(result.status).toBe(VerifyStatus.OK); });