From 6ba0057c3f9a2f79e49a53e8ac68dbd9c349db1c Mon Sep 17 00:00:00 2001 From: Kasper Ziemianek Date: Fri, 5 Jul 2024 15:54:50 +0200 Subject: [PATCH] fix dynamic assertion integration test --- .../integration-tests/assertion_contracts.test.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tee-worker/ts-tests/integration-tests/assertion_contracts.test.ts b/tee-worker/ts-tests/integration-tests/assertion_contracts.test.ts index 56bb6a3206..2237e239ba 100644 --- a/tee-worker/ts-tests/integration-tests/assertion_contracts.test.ts +++ b/tee-worker/ts-tests/integration-tests/assertion_contracts.test.ts @@ -21,7 +21,6 @@ import { subscribeToEvents } from './common/transactions'; import { encryptWithTeeShieldingKey } from './common/utils/crypto'; import { ethers } from 'ethers'; import { sleep } from './common/utils'; -import { $ as zx } from 'zx'; import { Bytes, Vec } from '@polkadot/types-codec'; describe('Test Vc (direct request)', function () { @@ -128,9 +127,12 @@ describe('Test Vc (direct request)', function () { const abiCoder = new ethers.utils.AbiCoder(); const encodedData = abiCoder.encode(['string'], ['bnb']); - const assertion = { - dynamic: [Uint8Array.from(Buffer.from('0000000000000000000000000000000000000003', 'hex')), encodedData], + dynamic: context.api.createType('DynamicParams', [ + Uint8Array.from(Buffer.from('0000000000000000000000000000000000000003', 'hex')), + encodedData, + false, + ]), }; const requestVcCall = await createSignedTrustedCallRequestVc(