Skip to content

Commit

Permalink
Add the "clearFees" function (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
dan437 authored Jul 13, 2022
1 parent 3dc760b commit 4f488c3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/SmartTransactionsController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,20 @@ export default class SmartTransactionsController extends BaseController<
};
}

clearFees(): Fees {
const fees = {
approvalTxFees: undefined,
tradeTxFees: undefined,
};
this.update({
smartTransactionsState: {
...this.state.smartTransactionsState,
fees,
},
});
return fees;
}

async getFees(
tradeTx: UnsignedTransaction,
approvalTx: UnsignedTransaction,
Expand Down

0 comments on commit 4f488c3

Please sign in to comment.