Fixed non-EIP-1559 populateTransaction check.

This commit is contained in:
Richard Moore 2023-01-27 01:11:50 -05:00
parent bfe7b6d80f
commit 2488d20f9e

View File

@ -151,7 +151,7 @@ export abstract class AbstractSigner<P extends null | Provider = null | Provider
// Network doesn't support EIP-1559...
// ...but they are trying to use EIP-1559 properties
assert(hasEip1559, "network does not support EIP-1559", "UNSUPPORTED_OPERATION", {
assert(!hasEip1559, "network does not support EIP-1559", "UNSUPPORTED_OPERATION", {
operation: "populateTransaction" });
// Populate missing fee data