[BUG] [dojo-bindgen] [unity] Generated actions methods try to call FieldElement
s in calldata
#2008
Labels
bug
Something isn't working
FieldElement
s in calldata
#2008
Describe the bug
bindgen
will generate code trying to callInner
on systemscalldata
elements.To Reproduce
Steps to reproduce the behavior:
dojo-starter
sozo build --unity
Actions
'sMove
indojo_starter::systems::actions::actions.gen.cs
which showsWhich doesn't compile.
Expected behavior
The resulting code should be
Additional info
It seems that
format_system
always formatscalldata
withFieldElement({}).Inner()
dojo/crates/dojo-bindgen/src/plugins/unity/mod.rs
Lines 209 to 234 in 010444f
I'm guessing it should probably just be
Inner
everywhere. If confirmed, I'd be happy to make a PR.The text was updated successfully, but these errors were encountered: