Skip to content

Commit

Permalink
Better from address validation
Browse files Browse the repository at this point in the history
  • Loading branch information
rileystephens28 committed Jun 17, 2024
1 parent 7e1bfb1 commit 7e1e755
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transaction/quai-transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ export class QuaiTransaction extends AbstractTransaction<Signature> 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',
Expand Down

0 comments on commit 7e1e755

Please sign in to comment.