# Unable to Optimize Compiled Wasm (Developer Walkthrough)

**URL:** <https://forum.scrt.network/t/unable-to-optimize-compiled-wasm-developer-walkthrough/1811>\
**Category:** Developer Help\
**Created:** [July 7, 2020, 3:54am UTC](https://forum.scrt.network/t/unable-to-optimize-compiled-wasm-developer-walkthrough/1811 "2020-07-07T03:54:44Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ltchang2019](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/ltchang2019/32/649_2.png) [@ltchang2019](https://forum.scrt.network/u/ltchang2019)\
**Post date:** [July 7, 2020, 3:54am UTC](https://forum.scrt.network/t/unable-to-optimize-compiled-wasm-developer-walkthrough/1811/1 "2020-07-07T03:54:44Z")

</div>

I run into the issue below when attempting to optimize the compiled wasm (before deploying contract). Any ideas on how I can fix this issue from the walkthrough? From what I understand, I don’t have access to the document that requires the change from the “u128::MAX” to “std::u128::MAX”…

 ![Screen Shot 2020-07-06 at 8.52.21 PM](https://canada1.discourse-cdn.com/flex035/uploads/enigma1/original/1X/9eeb8c495d6ea34f4650785d99b1b5abc04a5ffa.jpeg)

---

<div class="post-metadata">

**Author:** ![taariq](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/taariq/32/291_2.png) [@taariq](https://forum.scrt.network/u/taariq)\
**Post date:** [July 7, 2020, 2:10pm UTC](https://forum.scrt.network/t/unable-to-optimize-compiled-wasm-developer-walkthrough/1811/2 "2020-07-07T14:10:59Z")

</div>

> [@ltchang2019](#):
>
> I run into the issue below when attempting to optimize the compiled wasm (before deploying contract). Any ideas on how I can fix this issue from the walkthrough? From what I understand, I don’t have access to the document that requires the change from the “u128::MAX” to “std::u128::MAX”…

Hi , I see you’ve already upgraded to 0.9.2, this guide is based on `0.7.3`  
I’ve been meaning to update the guide already, so will get on that asap and revert when it’s fixed, should be within 24 hours. Will ping you here, thanks for reporting it.

---

<div class="post-metadata">

**Author:** ![ltchang2019](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/ltchang2019/32/649_2.png) [@ltchang2019](https://forum.scrt.network/u/ltchang2019)\
**Post date:** [July 7, 2020, 3:02pm UTC](https://forum.scrt.network/t/unable-to-optimize-compiled-wasm-developer-walkthrough/1811/3 "2020-07-07T15:02:46Z")

</div>

@taariq that sounds great thank you so much! Really appreciate it!

---

<div class="post-metadata">

**Author:** ![ltchang2019](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/ltchang2019/32/649_2.png) [@ltchang2019](https://forum.scrt.network/u/ltchang2019)\
**Post date:** [July 8, 2020, 2:52pm UTC](https://forum.scrt.network/t/unable-to-optimize-compiled-wasm-developer-walkthrough/1811/4 "2020-07-08T14:52:52Z")

</div>

Any updates on this issue?

---

<div class="post-metadata">

**Author:** ![taariq](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/taariq/32/291_2.png) [@taariq](https://forum.scrt.network/u/taariq)\
**Post date:** [July 8, 2020, 2:58pm UTC](https://forum.scrt.network/t/unable-to-optimize-compiled-wasm-developer-walkthrough/1811/5 "2020-07-08T14:58:06Z")

</div>

Yes, I’ve just pushed the updates to the intro so you’ll get past this issue while I work on the next 2 sections tonight.  
Will ping you again once that’s completed, looking forward to any feedback.  
Happy coding!

---

<div class="post-metadata">

**Author:** ![ltchang2019](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/ltchang2019/32/649_2.png) [@ltchang2019](https://forum.scrt.network/u/ltchang2019)\
**Post date:** [July 8, 2020, 10:24pm UTC](https://forum.scrt.network/t/unable-to-optimize-compiled-wasm-developer-walkthrough/1811/6 "2020-07-08T22:24:09Z")

</div>

Huh it says I’m now compiling cosmwasm v0.9.3 but I’m still getting the same error. And when I specify `docker run --rm -v $(pwd):/code --mount type=volume,source=$(basename $(pwd))_cache,target=/code/target --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry confio/cosmwasm-opt:0.9.3` instead of using 0.7.3 it says `Unable to find image 'confio/cosmwasm-opt:0.9.3' locally`

---

<div class="post-metadata">

**Author:** ![taariq](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/taariq/32/291_2.png) [@taariq](https://forum.scrt.network/u/taariq)\
**Post date:** [July 8, 2020, 11:27pm UTC](https://forum.scrt.network/t/unable-to-optimize-compiled-wasm-developer-walkthrough/1811/7 "2020-07-08T23:27:57Z")

</div>

A lot changed in the guide so please carefully start again.

You won’t have to build the docker image this time, so will be a lot faster to regenerate and build a new project.

---

<div class="post-metadata">

**Author:** ![taariq](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/taariq/32/291_2.png) [@taariq](https://forum.scrt.network/u/taariq)\
**Post date:** [July 8, 2020, 11:38pm UTC](https://forum.scrt.network/t/unable-to-optimize-compiled-wasm-developer-walkthrough/1811/8 "2020-07-08T23:38:40Z")

</div>

Based on the new error I think you generated a new project from the old template? Just check that cargo generate step uses the new url/repo
