fix: unable to createSource with JWKInterface wallet #376
This commit is contained in:
@@ -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> {
|
||||||
|
|||||||
@@ -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');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user