# I just hit the instruction limit!

**URL:** <https://forum.dfinity.org/t/i-just-hit-the-instruction-limit/27700>\
**Category:** Developers\
**Created:** [February 20, 2024, 3:22am UTC](https://forum.dfinity.org/t/i-just-hit-the-instruction-limit/27700 "2024-02-20T03:22:29Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![lshoo](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/lshoo/32/5847_2.png) [@lshoo](https://forum.dfinity.org/u/lshoo)\
**Post date:** [March 18, 2024, 7:40am UTC](https://forum.dfinity.org/t/i-just-hit-the-instruction-limit/27700/18 "2024-03-18T07:40:52Z")

</div>

I encountered the same issue in the `rgbonic` project code, which is the IC5022 error when importing RGB20 asset to Stock.  
How can I increase the instruction limit to address this? Since Stock is an initialization operation and cannot be split into instructions, does anyone have any suggestions? Thank you.  
[the code]([rgbonic/actors/rgb/src/lib.rs at main · lshoo/rgbonic · GitHub](https://github.com/lshoo/rgbonic/blob/main/actors/rgb/src/lib.rs#L28)

[got-ic5022-error-when-run-rgb-on-ic](https://forum.dfinity.org/t/got-ic5022-error-when-run-rgb-on-ic/28556) is here

---

_[View the full topic](https://forum.dfinity.org/t/i-just-hit-the-instruction-limit/27700)._
