Skip to content

Commit

Permalink
Attempt to fix tests by avoid overriding this in Truffle require
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestognw committed Oct 12, 2023
1 parent 98e5ecd commit 4db1800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hardhat/env-artifacts.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ extendEnvironment(hre => {
hre.artifacts.require = function (name) {
for (const suffix of suffixes) {
try {
return originalRequire.call(this, name + suffix);
return originalRequire(name + suffix);
} catch (e) {
if (isExpectedError(e, suffix)) {
continue;
Expand Down

0 comments on commit 4db1800

Please sign in to comment.