From 3a8b90224b2ce9ba536637b0cddc073060b16b9a Mon Sep 17 00:00:00 2001 From: Lint Action Date: Mon, 27 Nov 2023 22:25:19 +0000 Subject: [PATCH] Fix code style issues with Prettier --- test/oracleTests.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/test/oracleTests.js b/test/oracleTests.js index 494a005..3854b03 100644 --- a/test/oracleTests.js +++ b/test/oracleTests.js @@ -8,13 +8,15 @@ describe("Functions Consumer Unit Tests", async function () { // and reset Hardhat Network to that snapshot in every test. it("reads s_lastResponse from AutomatedFunctionsConsumer contract", async () => { - const AutomatedFunctionsConsumer = await ethers.getContractFactory("AutomatedFunctionsConsumer"); - const contractAddress = "0xfdEdFF6E45BdB0d3a3b89FDefCDc1fFec2CA9120"; //TODO @dev replace with your contract address - const contract = AutomatedFunctionsConsumer.attach(contractAddress); + const AutomatedFunctionsConsumer = await ethers.getContractFactory( + "AutomatedFunctionsConsumer" + ) + const contractAddress = "0xfdEdFF6E45BdB0d3a3b89FDefCDc1fFec2CA9120" //TODO @dev replace with your contract address + const contract = AutomatedFunctionsConsumer.attach(contractAddress) - const lastResponse = await contract.selicRate(); - const unitValue = await contract.unitValue(); - const maturityTime = await contract.maturityTime(); - console.log('My Response', lastResponse, unitValue, maturityTime); + const lastResponse = await contract.selicRate() + const unitValue = await contract.unitValue() + const maturityTime = await contract.maturityTime() + console.log("My Response", lastResponse, unitValue, maturityTime) }) })