Skip to content

Commit

Permalink
Update code post review
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibautBremand committed Aug 20, 2023
1 parent eefb4f7 commit 3c78650
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const submitTransactionsBulk = async (
};

if (payload.transactions.length === 0 || payload.transactions.length > MAX_TRANSACTIONS) {
throw new Error('Invalid number of transactions');
throw new Error(`Invalid number of transactions (must be between 1 and ${MAX_TRANSACTIONS})`);
}

try {
Expand Down

0 comments on commit 3c78650

Please sign in to comment.