# Contract Inheritance in Sway?

**URL:** <https://forum.fuel.network/t/contract-inheritance-in-sway/4681>\
**Category:** Sway\
**Tags:** testnet\
**Created:** [March 6, 2024, 4:22am UTC](https://forum.fuel.network/t/contract-inheritance-in-sway/4681 "2024-03-06T04:22:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![theAusicist](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/theausicist/32/1987_2.png) [@theAusicist](https://forum.fuel.network/u/theAusicist)\
**Post date:** [March 6, 2024, 4:22am UTC](https://forum.fuel.network/t/contract-inheritance-in-sway/4681/1 "2024-03-06T04:22:45Z")

</div>

This is related to[[Does sway have solidity-style contract inheritence?](https://forum.fuel.network/t/does-sway-have-solidity-style-contract-inheritence/708).

is there any update on this? As far as I can see [from here](https://github.com/FuelLabs/sway/issues/2585), [abis can have traits as supertraits](https://github.com/FuelLabs/sway/issues/3798) which is helpful, but requires re-implementation of the “inherited” abi trait. Any tips?

---

<div class="post-metadata">

**Author:** ![svimes](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/svimes/32/2136_2.png) [@svimes](https://forum.fuel.network/u/svimes)\
**Post date:** [March 7, 2024, 5:31pm UTC](https://forum.fuel.network/t/contract-inheritance-in-sway/4681/2 "2024-03-07T17:31:06Z")

</div>

Commenting to follow along.

I’m not sure if they are supported in sway, or if they ever will be, but default implementations seem like a decent solution for this.

[https://doc.rust-lang.org/book/ch10-02-traits.html](https://doc.rust-lang.org/book/ch10-02-traits.html)

---

<div class="post-metadata">

**Author:** ![theAusicist](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/theausicist/32/1987_2.png) [@theAusicist](https://forum.fuel.network/u/theAusicist)\
**Post date:** [March 7, 2024, 6:42pm UTC](https://forum.fuel.network/t/contract-inheritance-in-sway/4681/3 "2024-03-07T18:42:14Z")

</div>

that would be cool if supported 😉
