fix: unable to createSource with JWKInterface wallet #376

This commit is contained in:
ppe
2023-03-23 12:03:01 +01:00
committed by just_ppe
parent dbe52e82cd
commit 34d2e61b58
2 changed files with 4 additions and 3 deletions

View File

@@ -118,9 +118,10 @@ export class Warp {
async createSource( async createSource(
sourceData: SourceData, sourceData: SourceData,
wallet: ArWallet | CustomSignature | BundlerSigner wallet: ArWallet | CustomSignature | BundlerSigner,
disableBundling: boolean = false
): Promise<Transaction | DataItem> { ): Promise<Transaction | DataItem> {
return await this.createContract.createSource(sourceData, wallet); return await this.createContract.createSource(sourceData, wallet, disableBundling);
} }
async saveSource(src: Transaction | DataItem, disableBundling?: boolean): Promise<string> { async saveSource(src: Transaction | DataItem, disableBundling?: boolean): Promise<string> {

View File

@@ -19,7 +19,7 @@ async function main() {
const rssUsedBefore = Math.round((process.memoryUsage().rss / 1024 / 1024) * 100) / 100; const rssUsedBefore = Math.round((process.memoryUsage().rss / 1024 / 1024) * 100) / 100;
const warp = WarpFactory const warp = WarpFactory
.forMainnet({...defaultCacheOptions, inMemory: true}); .forMainnet({...defaultCacheOptions, inMemory: true})
let wallet: JWKInterface = readJSON('./.secrets/33F0QHcb22W7LwWR1iRC8Az1ntZG09XQ03YWuw2ABqA.json'); let wallet: JWKInterface = readJSON('./.secrets/33F0QHcb22W7LwWR1iRC8Az1ntZG09XQ03YWuw2ABqA.json');