Skip to content

Commit

Permalink
add signedExtensions in ApiPromise.create() for ts-test
Browse files Browse the repository at this point in the history
  • Loading branch information
BillyWooo committed Oct 5, 2024
1 parent 7dff3fc commit 6eb1fe7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions parachain/ts-tests/common/utils/integration-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ export async function initApiPromise(config: any): Promise<ParachainConfig> {
// Initiate the polkadot API.
const api = await ApiPromise.create({
provider: wsProvider,
signedExtensions: {
CheckMetadataHash: {
extrinsic: {
mode: 'u8'
},
payload: {
metadataHash: 'Option<[u8;32]>'
}
}
}
});

console.log(`Initialization done`);
Expand Down

0 comments on commit 6eb1fe7

Please sign in to comment.