Skip to content

Commit

Permalink
fix dynamic assertion integration test (#2864)
Browse files Browse the repository at this point in the history
  • Loading branch information
kziemianek authored Jul 5, 2024
1 parent 3f206f7 commit 610ea48
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 610ea48

Please sign in to comment.