# Error: failed to decode for built-in type EmbeddedFr after successful typecheck

**URL:** <https://forum.midnight.network/t/error-failed-to-decode-for-built-in-type-embeddedfr-after-successful-typecheck/124>\
**Category:** Technical Questions\
**Tags:** compact, learning, error-help, best-practices\
**Created:** [July 30, 2025, 1:41pm UTC](https://forum.midnight.network/t/error-failed-to-decode-for-built-in-type-embeddedfr-after-successful-typecheck/124 "2025-07-30T13:41:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislucena](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.midnight.network/luislucena/32/20_2.png) [@luislucena](https://forum.midnight.network/u/luislucena)\
**Post date:** [July 30, 2025, 1:41pm UTC](https://forum.midnight.network/t/error-failed-to-decode-for-built-in-type-embeddedfr-after-successful-typecheck/124/1 "2025-07-30T13:41:41Z")

</div>

hey @lolocoding / @claude_barde based on my research and the community’s feedback, this usually happens when the input value is out of range, and it doesn’t reduce correctly. I tested this by trying to declare the `Field` corresponding to `ecMulGenerator` with a value of `Field = 2`. That worked for me. It’s a temporary workaround.

I’d like to know if the Midnight team is working for a better solution on this? Thanks in advance.

---

<div class="post-metadata">

**Author:** ![lolocoding](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.midnight.network/lolocoding/32/505_2.png) [@lolocoding](https://forum.midnight.network/u/lolocoding)\
**Post date:** [July 30, 2025, 3:07pm UTC](https://forum.midnight.network/t/error-failed-to-decode-for-built-in-type-embeddedfr-after-successful-typecheck/124/2 "2025-07-30T15:07:59Z")

</div>

Let’s definitely create a feedback [ticket](https://shielded.atlassian.net/jira/software/c/form/6a6bc6a7-27af-486c-aee8-caebb2fbf98c?from=directory) for this! And then we can advocate on the community’s behalf with the PMs and Eng team to prioritize a better solution!

EDIT: As I understand it, @sergeykisel has opened a ticket about this topic already! So let’s be sure to check in with the PMs next week @claude_barde on this to find out the status.

---

<div class="post-metadata">

**Author:** ![luislucena](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.midnight.network/luislucena/32/20_2.png) [@luislucena](https://forum.midnight.network/u/luislucena)\
**Post date:** [August 1, 2025, 11:02am UTC](https://forum.midnight.network/t/error-failed-to-decode-for-built-in-type-embeddedfr-after-successful-typecheck/124/3 "2025-08-01T11:02:22Z")

</div>

Thanks @lolocoding I will be attentive to the updates!
