Skip to content

Commit ef2bed2

Browse files
committed
Update tests
1 parent 9b730ec commit ef2bed2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/e2eTests.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const {expect,assert} = require("chai");
2-
const {ethers} = require("hardhat");
2+
const { ethers, upgrades } = require("hardhat");
33
const h = require("./helpers/helpers");
44
const web3 = require("web3");
55
const {keccak256} = require("@ethersproject/keccak256");
@@ -38,7 +38,7 @@ describe("Autopay - e2e tests", function() {
3838
queryDataStorage = await QueryDataStorage.deploy();
3939
await queryDataStorage.deployed();
4040
const Autopay = await ethers.getContractFactory("AutopayMock");
41-
autopay = await Autopay.deploy(fetch.address, queryDataStorage.address);
41+
autopay = await upgrades.deployProxy(Autopay, [fetch.address, queryDataStorage.address])
4242
await autopay.deployed();
4343
});
4444

test/functionTests-FetchAutopay.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const { expect, assert } = require("chai");
2-
const { ethers } = require("hardhat");
2+
const { ethers, upgrades } = require("hardhat");
33
const h = require("./helpers/helpers");
44
const web3 = require("web3");
55
const { keccak256 } = require("@ethersproject/keccak256");
@@ -38,7 +38,7 @@ describe("Autopay - function tests", () => {
3838
queryDataStorage = await QueryDataStorage.deploy();
3939
await queryDataStorage.deployed();
4040
const Autopay = await ethers.getContractFactory("AutopayMock");
41-
autopay = await Autopay.deploy(fetch.address, queryDataStorage.address);
41+
autopay = await upgrades.deployProxy(Autopay, [fetch.address, queryDataStorage.address]);
4242
await autopay.deployed();
4343
firstBlocky = await h.getBlock();
4444
await autopay.setupDataFeed(ETH_QUERY_ID,h.toWei("1"),firstBlocky.timestamp,3600,600,0,0,ETH_QUERY_DATA,0);

0 commit comments

Comments
 (0)