fix: bundleInteraction should not allow to set arTransfer data

This commit is contained in:
ppe
2022-04-20 16:23:35 +02:00
parent fa2ba798cb
commit 620cf82381
2 changed files with 3 additions and 13 deletions

View File

@@ -224,17 +224,12 @@ export class HandlerBasedContract<State> implements Contract<State> {
return interactionTx.id;
}
async bundleInteraction<Input>(
input: Input,
tags: Tags = [],
transfer: ArTransfer = emptyTransfer,
strict = false
): Promise<any | null> {
async bundleInteraction<Input>(input: Input, tags: Tags = [], strict = false): Promise<any | null> {
this.logger.info('Bundle interaction input', input);
if (!this.wallet) {
throw new Error("Wallet not connected. Use 'connect' method first.");
}
const interactionTx = await this.createInteraction(input, tags, transfer, strict);
const interactionTx = await this.createInteraction(input, tags, emptyTransfer, strict);
const response = await fetch(`${this._evaluationOptions.bundlerAddress}gateway/sequencer/register`, {
method: 'POST',