From 34d2e61b586418c8e61ac47e41942f970e8035a3 Mon Sep 17 00:00:00 2001 From: ppe Date: Thu, 23 Mar 2023 12:03:01 +0100 Subject: [PATCH] fix: unable to createSource with JWKInterface wallet #376 --- src/core/Warp.ts | 5 +++-- tools/contract.ts | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/core/Warp.ts b/src/core/Warp.ts index d5fd574..4d0480b 100644 --- a/src/core/Warp.ts +++ b/src/core/Warp.ts @@ -118,9 +118,10 @@ export class Warp { async createSource( sourceData: SourceData, - wallet: ArWallet | CustomSignature | BundlerSigner + wallet: ArWallet | CustomSignature | BundlerSigner, + disableBundling: boolean = false ): Promise { - return await this.createContract.createSource(sourceData, wallet); + return await this.createContract.createSource(sourceData, wallet, disableBundling); } async saveSource(src: Transaction | DataItem, disableBundling?: boolean): Promise { diff --git a/tools/contract.ts b/tools/contract.ts index 7945b4c..62fde2b 100644 --- a/tools/contract.ts +++ b/tools/contract.ts @@ -19,7 +19,7 @@ async function main() { const rssUsedBefore = Math.round((process.memoryUsage().rss / 1024 / 1024) * 100) / 100; const warp = WarpFactory - .forMainnet({...defaultCacheOptions, inMemory: true}); + .forMainnet({...defaultCacheOptions, inMemory: true}) let wallet: JWKInterface = readJSON('./.secrets/33F0QHcb22W7LwWR1iRC8Az1ntZG09XQ03YWuw2ABqA.json');