From bd284acce3390164e83b0ddc5ffb1aff5c28ec78 Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Tue, 17 Jan 2023 11:07:12 +0100 Subject: [PATCH] [examples] remove dead code --- test/examples.js | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/test/examples.js b/test/examples.js index 50caa46..bf23af3 100644 --- a/test/examples.js +++ b/test/examples.js @@ -1,7 +1,7 @@ const { ethers } = require("hardhat") const { hours } = require("./time") const { currentTime } = require("./evm") -const { getAddress, hexlify, randomBytes } = ethers.utils +const { hexlify, randomBytes } = ethers.utils const exampleRequest = async () => { const now = await currentTime() @@ -30,15 +30,5 @@ const exampleRequest = async () => { nonce: hexlify(randomBytes(32)), } } -const exampleLock = async () => { - const now = await currentTime() - return { - id: hexlify(randomBytes(32)), - expiry: now + hours(1), - } -} -const exampleAddress = () => { - return getAddress(hexlify(randomBytes(20))) -} -module.exports = { exampleRequest, exampleLock, exampleAddress } +module.exports = { exampleRequest }