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

Commit

Permalink
Revert test for valid params
Browse files Browse the repository at this point in the history
  • Loading branch information
sitetester committed Nov 9, 2023
1 parent 142e547 commit 62fe774
Showing 1 changed file with 0 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit 62fe774

Please sign in to comment.