Skip to content

Commit

Permalink
fix: Removed check for no allowances
Browse files Browse the repository at this point in the history
Signed-off-by: ivaylogarnev-limechain <[email protected]>
  • Loading branch information
ivaylogarnev-limechain committed Jan 27, 2025
1 parent 29a3619 commit 94aef2c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tck/methods/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,6 @@ export const approveAllowance = async ({
allowances,
commonTransactionParams,
}: AccountAllowanceApproveParams): Promise<AccountResponse> => {
if (!allowances || allowances.length === 0) {
throw new Error("Allowances must be provided.");
}

const transaction = new AccountAllowanceApproveTransaction();
transaction.setGrpcDeadline(DEFAULT_GRPC_DEADLINE);

Expand Down

0 comments on commit 94aef2c

Please sign in to comment.