# Why sway doesn't recognize the standard src20 library?

**URL:** <https://forum.fuel.network/t/why-sway-doesnt-recognize-the-standard-src20-library/5929>\
**Category:** Sway\
**Created:** [June 19, 2024, 4:54pm UTC](https://forum.fuel.network/t/why-sway-doesnt-recognize-the-standard-src20-library/5929 "2024-06-19T16:54:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrwmayorca](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/andrwmayorca/32/2803_2.png) [@andrwmayorca](https://forum.fuel.network/u/andrwmayorca)\
**Post date:** [June 19, 2024, 4:54pm UTC](https://forum.fuel.network/t/why-sway-doesnt-recognize-the-standard-src20-library/5929/1 "2024-06-19T16:54:09Z")

</div>

hi, im having problems wen i try use the SRC20 as value in a event variable

the import be success but the compiler says that it doesn’t recognize the type

here u have my code image and the issue image

 ![Screenshot 2024-06-19 125303](https://us1.discourse-cdn.com/flex022/uploads/fuel/original/2X/5/59c36475be45c268f740617b7b769ac7bf05c9c5.png)  
 ![Screenshot 2024-06-19 125317](https://us1.discourse-cdn.com/flex022/uploads/fuel/original/2X/7/799b17408a1a5770d13362f43732447ddd4bae11.png)

---

<div class="post-metadata">

**Author:** ![nick](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/nick/32/2330_2.png) [@nick](https://forum.fuel.network/u/nick)\
**Post date:** [June 19, 2024, 5:07pm UTC](https://forum.fuel.network/t/why-sway-doesnt-recognize-the-standard-src20-library/5929/2 "2024-06-19T17:07:50Z")

</div>

Hi @andrwmayorca ,

Please provide the results of `fuelup show` first so we can see what versions you are on.

Secondly, can you provide the entire code sample, gist or public github repo for us tor review.

Note, as of recent, the sway-standards changed its module design such that the right module path should be: `use standards::src20::SRC20`:

> **[Sway Standards | Fuel Docs](https://docs.fuel.network/docs/sway-standards/src-20-native-asset/#single-native-asset)**
>
> Official documentation for Sway Standards

Hope this helps.

---

<div class="post-metadata">

**Author:** ![andrwmayorca](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/andrwmayorca/32/2803_2.png) [@andrwmayorca](https://forum.fuel.network/u/andrwmayorca)\
**Post date:** [June 19, 2024, 5:26pm UTC](https://forum.fuel.network/t/why-sway-doesnt-recognize-the-standard-src20-library/5929/3 "2024-06-19T17:26:21Z")

</div>

> [@nick](#):
>
> use standards::src20::SRC20

right now I’m using the beta-4 toolchain

 ![image](https://us1.discourse-cdn.com/flex022/uploads/fuel/original/2X/a/ad65edb918d814d2f4c2112d1bee3aae81b8f524.png)

---

<div class="post-metadata">

**Author:** ![crypt0mate](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/crypt0mate/32/2445_2.png) [@crypt0mate](https://forum.fuel.network/u/crypt0mate)\
**Post date:** [June 19, 2024, 11:34pm UTC](https://forum.fuel.network/t/why-sway-doesnt-recognize-the-standard-src20-library/5929/4 "2024-06-19T23:34:27Z")

</div>

can you try updating to the latest toolchain please.

---

<div class="post-metadata">

**Author:** ![andrwmayorca](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/andrwmayorca/32/2803_2.png) [@andrwmayorca](https://forum.fuel.network/u/andrwmayorca)\
**Post date:** [June 20, 2024, 1:35pm UTC](https://forum.fuel.network/t/why-sway-doesnt-recognize-the-standard-src20-library/5929/5 "2024-06-20T13:35:57Z")

</div>

its done! and I still having the same issue

---

<div class="post-metadata">

**Author:** ![crypt0mate](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/crypt0mate/32/2445_2.png) [@crypt0mate](https://forum.fuel.network/u/crypt0mate)\
**Post date:** [June 20, 2024, 6:19pm UTC](https://forum.fuel.network/t/why-sway-doesnt-recognize-the-standard-src20-library/5929/6 "2024-06-20T18:19:21Z")

</div>

try going through this doc:  
[Sway Standards | Fuel Docs](https://docs.fuel.network/docs/sway-standards/src-20-native-asset/#src-20-native-asset)

There is a Native Asset example contract which you shough try to compile and use as a template for your project.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/fuel/original/2X/3/3d1bd6d5cd32fe17c3c1e5faba4d2cda3896156d.png)

---

<div class="post-metadata">

**Author:** ![nick](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/nick/32/2330_2.png) [@nick](https://forum.fuel.network/u/nick)\
**Post date:** [June 28, 2024, 9:54am UTC](https://forum.fuel.network/t/why-sway-doesnt-recognize-the-standard-src20-library/5929/7 "2024-06-28T09:54:29Z")

</div>

@andrwmayorca

Are you still stuck here? If so, can you provide the results of `fuelup show` first.
