# Upgrade ERC20 contract using remix IDE

**URL:** <https://forum.openzeppelin.com/t/upgrade-erc20-contract-using-remix-ide/4893>\
**Category:** Upgrades\
**Tags:** erc20, openzeppelin-contracts\
**Created:** [December 3, 2020, 2:47pm UTC](https://forum.openzeppelin.com/t/upgrade-erc20-contract-using-remix-ide/4893 "2020-12-03T14:47:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikunj](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@Nikunj](https://forum.openzeppelin.com/u/Nikunj)\
**Post date:** [December 3, 2020, 2:47pm UTC](https://forum.openzeppelin.com/t/upgrade-erc20-contract-using-remix-ide/4893/1 "2020-12-03T14:47:54Z")

</div>

Hello team,

I implemented a contract on the ethereum main network using online remix IDE.  
I have developed that Contract using “@openzeppelin/contract-ethereum-package”: “^ 2.5.0”.

Now I want to upgrade this contract but couldn’t find any way.

I don’t have an implementation JSON file or anything that can help me get out of it.

I only have the address of the contract and its source code available on my system.

Could someone please suggest the way so that I can update it?

---

<div class="post-metadata">

**Author:** ![abcoathup](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/abcoathup/32/415_2.png) [@abcoathup](https://forum.openzeppelin.com/u/abcoathup)\
**Post date:** [December 4, 2020, 3:54am UTC](https://forum.openzeppelin.com/t/upgrade-erc20-contract-using-remix-ide/4893/2 "2020-12-04T03:54:49Z")

</div>

Hi @Nikunj,

If you deployed just an ERC20 from `@openzeppelin/contract-ethereum-package` without a proxy contract, then unfortunately your contract is not upgradeable.

Did you deploy a proxy contract as well?

To create an upgradeable contract, we need a proxy contract and an implementation contract (with an optional ProxyAdmin contract). When we perform an upgrade, we deploy a new implementation contract and point the proxy contract to the new implementation. See: [https://docs.openzeppelin.com/learn/upgrading-smart-contracts](https://docs.openzeppelin.com/learn/upgrading-smart-contracts)

I recommend deploying upgradeable contracts using the OpenZeppelin Upgrades Plugins (for Truffle and Hardhat): [https://docs.openzeppelin.com/upgrades-plugins/1.x/](https://docs.openzeppelin.com/upgrades-plugins/1.x/)

---

<div class="post-metadata">

**Author:** ![Kartik\_Rajendran](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/kartik_rajendran/32/3175_2.png) [@Kartik\_Rajendran](https://forum.openzeppelin.com/u/Kartik_Rajendran)\
**Post date:** [December 4, 2020, 5:02am UTC](https://forum.openzeppelin.com/t/upgrade-erc20-contract-using-remix-ide/4893/4 "2020-12-04T05:02:36Z")

</div>

> [@abcoathup](#):
>
> racts using the OpenZeppelin Upgrades Plugins (

Hello @abcoathup,

The problem we are facing is we have deployed a upgradable smart contract which was created using **"@openzeppelin/contracts-ethereum-package": "^2.5.0"**.

When we deployed it on the rinkeby test network using **oz deploy** commands we were able to upgrade our contract using **oz upgrade** commands because their was a **rinkeby.json** file created inside the **.openzeppelin** folder.

But unfortunately we deployed our contract using **remix ide on mainnet** so we want to upgrade it now but we don't have the rinkeby.json file with us as the contract was deployed using remix ide.

So just wanted to know is their any way we can **reproduce that rinkeby.json** using the **already deployed contract address**.

---

<div class="post-metadata">

**Author:** ![abcoathup](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/abcoathup/32/415_2.png) [@abcoathup](https://forum.openzeppelin.com/u/abcoathup)\
**Post date:** [December 4, 2020, 5:25am UTC](https://forum.openzeppelin.com/t/upgrade-erc20-contract-using-remix-ide/4893/5 "2020-12-04T05:25:30Z")

</div>

Hi @Kartik_Rajendran,

Welcome to the community 👋.

If you only deployed the ERC20 implementation without a proxy using Remix then unfortunately it isn’t upgradeable. Did you deploy a proxy contract as well as the implementation contract using Remix?

Can you share your contract address on mainnet?

---

<div class="post-metadata">

**Author:** ![Kartik\_Rajendran](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/kartik_rajendran/32/3175_2.png) [@Kartik\_Rajendran](https://forum.openzeppelin.com/u/Kartik_Rajendran)\
**Post date:** [December 4, 2020, 6:35am UTC](https://forum.openzeppelin.com/t/upgrade-erc20-contract-using-remix-ide/4893/6 "2020-12-04T06:35:41Z")

</div>

Hi @abcoathup,

I will share you the same contract which we have deloyed on the rinkeby test network.  
Contract address - 0xDb3f0F4430Bf0FD935eACCb352a05D71b39488F3

> **[Contract Address 0xDb3f0F4430Bf0FD935eACCb352a05D71b39488F3 | Etherscan](https://rinkeby.etherscan.io/address/0xDb3f0F4430Bf0FD935eACCb352a05D71b39488F3#writeContract)**
>
> The Contract Address 0xDb3f0F4430Bf0FD935eACCb352a05D71b39488F3 page allows users to view the source code, transactions, balances, and analytics for the contract address. Users can also interact and make transactions to the contract directly on...

---

<div class="post-metadata">

**Author:** ![abcoathup](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/abcoathup/32/415_2.png) [@abcoathup](https://forum.openzeppelin.com/u/abcoathup)\
**Post date:** [December 7, 2020, 9:46am UTC](https://forum.openzeppelin.com/t/upgrade-erc20-contract-using-remix-ide/4893/7 "2020-12-07T09:46:31Z")

</div>

Hi @Kartik_Rajendran,

It looks like you deployed the contract without a proxy pointing to it.

It looks like you also deployed a proxy contract: [https://rinkeby.etherscan.io/address/0x81d193cb00719a22c143199bc1a8dc6f52dee18e#readProxyContract](https://rinkeby.etherscan.io/address/0x81d193cb00719a22c143199bc1a8dc6f52dee18e#readProxyContract)

What was your intention?
