feat: save source through bundlr (#283)

This commit is contained in:
Asia
2022-12-02 16:51:20 +01:00
committed by GitHub
parent 1e96130331
commit 231fefa13c
13 changed files with 271 additions and 56 deletions

View File

@@ -754,17 +754,6 @@ export class HandlerBasedContract<State> implements Contract<State> {
return await this.writeInteraction<any>({ function: 'evolve', value: newSrcTxId }, options);
}
async save(sourceData: SourceData): Promise<any> {
if (!this.signature) {
throw new Error("Wallet not connected. Use 'connect' method first.");
}
const source = new SourceImpl(this.warp);
const srcTx = await source.save(sourceData, this.warp.environment, this.signature);
return srcTx.id;
}
get rootSortKey(): string {
return this._rootSortKey;
}