diff --git a/src.ts/_tests/test-providers-errors.ts b/src.ts/_tests/test-providers-errors.ts index 19ad3ce7a..744c02e53 100644 --- a/src.ts/_tests/test-providers-errors.ts +++ b/src.ts/_tests/test-providers-errors.ts @@ -236,7 +236,9 @@ describe("Test Provider Blockchain Errors", function() { }); console.log(tx); }, (error) => { - return isError(error, "INSUFFICIENT_FUNDS"); + return (isError(error, "INSUFFICIENT_FUNDS") && + typeof(error.transaction.from) === "string" && + error.transaction.from.toLowerCase() === w.address.toLowerCase()); }); }); }