# Upgradable contracts - OZ (Upgradeability using Inherited Storage)

**URL:** <https://forum.openzeppelin.com/t/upgradable-contracts-oz-upgradeability-using-inherited-storage/301>\
**Category:** SDK\
**Created:** [February 15, 2019, 10:58am UTC](https://forum.openzeppelin.com/t/upgradable-contracts-oz-upgradeability-using-inherited-storage/301 "2019-02-15T10:58:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![madjarevicn](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/madjarevicn/32/342_2.png) [@madjarevicn](https://forum.openzeppelin.com/u/madjarevicn)\
**Post date:** [February 15, 2019, 10:58am UTC](https://forum.openzeppelin.com/t/upgradable-contracts-oz-upgradeability-using-inherited-storage/301/1 "2019-02-15T10:58:28Z")

</div>

Hello, I’m wondering about one thing.  
Let’s say I have contract Contract1.  
Let’s say I have applied to my Contract1 **Upgradeability using Inherited Storage** pattern. So now it’s the time to update some logic inside my Contract1.  
1st case:  
I’m willing to change logic inside 1 method, but keep input/output same, so the change doesn’t affect contract ABI. Can I change it inside current implementation, and just redeploy it, and then update Registry with new implementation and set new version etc. OR I have to create new contract, for instance Contract1v2 and inherit Contract1 and then, in Contract1v2 implement (override) the method I want to apply logic change?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![IvanTheGreatDev](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/ivanthegreatdev/32/6647_2.png) [@IvanTheGreatDev](https://forum.openzeppelin.com/u/IvanTheGreatDev)\
**Post date:** [February 15, 2019, 3:41pm UTC](https://forum.openzeppelin.com/t/upgradable-contracts-oz-upgradeability-using-inherited-storage/301/2 "2019-02-15T15:41:54Z")

</div>

Hello @madjarevicn! Maybe @frangioxan help you out!

We’re at ETHDenver right now so apologies if he takes a moment to get back to you.

---

<div class="post-metadata">

**Author:** ![madjarevicn](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/madjarevicn/32/342_2.png) [@madjarevicn](https://forum.openzeppelin.com/u/madjarevicn)\
**Post date:** [February 16, 2019, 11:09am UTC](https://forum.openzeppelin.com/t/upgradable-contracts-oz-upgradeability-using-inherited-storage/301/3 "2019-02-16T11:09:54Z")

</div>

Thanks @IvanTheGreatDev, please feel free to ping me after ETHDenver. 🙂

---

<div class="post-metadata">

**Author:** ![nventuro](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/nventuro/32/8_2.png) [@nventuro](https://forum.openzeppelin.com/u/nventuro)\
**Post date:** [February 20, 2019, 3:12pm UTC](https://forum.openzeppelin.com/t/upgradable-contracts-oz-upgradeability-using-inherited-storage/301/4 "2019-02-20T15:12:12Z")

</div>

> [@madjarevicn](#):
>
> Can I change it inside current implementation, and just redeploy it, and then update Registry with new implementation and set new version etc. OR I have to create new contract, for instance Contract1v2 and inherit Contract1 and then, in Contract1v2 implement (override) the method I want to apply logic change?

Both approaches should be valid: inheriting has the nice side effect of preserving the original ABI, but you may encounter a scenario where it is not enough (or convenient) to do the change you want to do, e.g. if you need to change a `private` function.

I believe @spalladino has experimented more with this sort of thing, maybe he has additional input?

---

<div class="post-metadata">

**Author:** ![spalladino](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/spalladino/32/22_2.png) [@spalladino](https://forum.openzeppelin.com/u/spalladino)\
**Post date:** [February 21, 2019, 9:00pm UTC](https://forum.openzeppelin.com/t/upgradable-contracts-oz-upgradeability-using-inherited-storage/301/5 "2019-02-21T21:00:35Z")

</div>

@nventuro no more comments, as you say, it’s exactly the same. The compiled bytecode would be (pretty much) the same whether you create a V2 extending from V1 and override the desired method, or you just modify your source code.
