Skip to content

Commit 0897802

Browse files
committed
Add new helper util to check isLocalhost
1 parent b587e8e commit 0897802

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

utils/helpers.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,5 @@ module.exports.findEvent = async function (fn, eventName) {
8585
const recipe = await tx.wait();
8686
return recipe.events.find((e) => e.event === eventName).args;
8787
};
88+
89+
module.exports.isLocalhost = (id) => id == 31337;

0 commit comments

Comments
 (0)