From d5186f8d56e8d0f8098c6789a003c57392b1f951 Mon Sep 17 00:00:00 2001 From: Ali Behjati Date: Fri, 29 Jul 2022 18:27:10 +0430 Subject: [PATCH] Update 4_pyth_add_events_and_update_fee.js (#244) --- ethereum/migrations/prod/4_pyth_add_events_and_update_fee.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ethereum/migrations/prod/4_pyth_add_events_and_update_fee.js b/ethereum/migrations/prod/4_pyth_add_events_and_update_fee.js index dff94947..cc873030 100644 --- a/ethereum/migrations/prod/4_pyth_add_events_and_update_fee.js +++ b/ethereum/migrations/prod/4_pyth_add_events_and_update_fee.js @@ -11,6 +11,6 @@ const { upgradeProxy } = require("@openzeppelin/truffle-upgrades"); * the contract activity. */ module.exports = async function (deployer) { - const instance = await PythUpgradable.deployed(); - await upgradeProxy(instance.address, PythUpgradable, { deployer }); + const proxy = await PythUpgradable.deployed(); + await upgradeProxy(proxy.address, PythUpgradable, { deployer }); }