tests: more robust checking of insufficient funds errors.

This commit is contained in:
Richard Moore 2023-01-27 18:31:31 -05:00
parent 924cfef5de
commit 9526289f76

@ -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());
});
});
}