# Failed to compile contracts without error logs

**URL:** <https://forum.fuel.network/t/failed-to-compile-contracts-without-error-logs/7259>\
**Category:** Sway\
**Tags:** faqs\
**Created:** [December 10, 2024, 3:43am UTC](https://forum.fuel.network/t/failed-to-compile-contracts-without-error-logs/7259 "2024-12-10T03:43:50Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![naz3eh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/naz3eh/32/2025_2.png) [@naz3eh](https://forum.fuel.network/u/naz3eh)\
**Post date:** [December 10, 2024, 1:30pm UTC](https://forum.fuel.network/t/failed-to-compile-contracts-without-error-logs/7259/8 "2024-12-10T13:30:27Z")

</div>

@eesheng, the issue was that the contract had multiple methods with the same name `total_supply`. One from the SRC20 and other from the YuneVault. I renamed one of the method to `total_supply2` and it worked. Here is the code for the [ref](https://github.com/Nazeeh21/test-v1-core). The confusion arose because the compiler was not generating a friendly error.

---

_[View the full topic](https://forum.fuel.network/t/failed-to-compile-contracts-without-error-logs/7259)._
