From 7e1e755fed26ce478aa1c62d39c1ad0e715915a9 Mon Sep 17 00:00:00 2001 From: rileystephens28 Date: Mon, 17 Jun 2024 13:57:07 -0500 Subject: [PATCH] Better from address validation --- src/transaction/quai-transaction.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transaction/quai-transaction.ts b/src/transaction/quai-transaction.ts index 777abab7..5e3536d6 100644 --- a/src/transaction/quai-transaction.ts +++ b/src/transaction/quai-transaction.ts @@ -443,7 +443,7 @@ export class QuaiTransaction extends AbstractTransaction implements Q } if (tx.from != null) { - validateAddress(tx.from); + assertArgument(!isQiAddress(tx.from), 'from address must be a Quai address', 'tx.from', tx.from); assertArgument( (result.from || '').toLowerCase() === (tx.from || '').toLowerCase(), 'from mismatch',