Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion yarn-project/aztec.js/src/contract/proven_tx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,17 @@ export class ProvenTx extends Tx {
super(tx.data, tx.clientIvcProof, tx.contractClassLogs, tx.publicFunctionCalldata);
}

// Clone the TX data to get a serializable object.
protected getPlainDataTx(): Tx {
return new Tx(this.data, this.clientIvcProof, this.contractClassLogs, this.publicFunctionCalldata);
}

/**
* Sends the transaction to the network via the provided wallet.
*/
public send(): SentTx {
const promise = (() => {
return this.wallet.sendTx(this);
return this.wallet.sendTx(this.getPlainDataTx());
})();

return new SentTx(this.wallet, promise);
Expand Down