Fixed typos in errors.

This commit is contained in:
Richard Moore 2023-01-17 13:51:52 -05:00
parent e55a87ad4c
commit 206d8ff8d7

@ -799,12 +799,12 @@ export class Transaction implements TransactionLike<string> {
if (tx.accessList != null) { result.accessList = tx.accessList; } if (tx.accessList != null) { result.accessList = tx.accessList; }
if (tx.hash != null) { if (tx.hash != null) {
assertArgument(result.isSigned(), "unsigned transaction cannot have define hash", "tx", tx); assertArgument(result.isSigned(), "unsigned transaction cannot define hash", "tx", tx);
assertArgument(result.hash === tx.hash, "hash mismatch", "tx", tx); assertArgument(result.hash === tx.hash, "hash mismatch", "tx", tx);
} }
if (tx.from != null) { if (tx.from != null) {
assertArgument(result.isSigned(), "unsigned transaction cannot have define from", "tx", tx); assertArgument(result.isSigned(), "unsigned transaction cannot define from", "tx", tx);
assertArgument(result.from.toLowerCase() === (tx.from || "").toLowerCase(), "from mismatch", "tx", tx); assertArgument(result.from.toLowerCase() === (tx.from || "").toLowerCase(), "from mismatch", "tx", tx);
} }