When running fuels builld, getting this error:
Too many arguments, cannot handle.: Immediate12TooLarge { val: 4335, span: Span { src (ptr): 0x60000237c260, source_id: None, start: 0, end: 0, as_str(): “” } }
We have made very little changes ( simply added a function that returns the value of a configurable constant )
Help appreciated.
nick
September 24, 2024, 10:17am
2
Hi @xpluscal ,
Can you provide links or gists to your code, results of fuelup show
.
1 Like
maschad
September 25, 2024, 3:02pm
3
Hi @xpluscal this seems like a Sway compiler error, could you share the changes you have made to the function that returns the configurable constant? What’s the output of when you try to build these contracts using forc
?
Just cross linking this , looks like a compiler issue.
2 Likes
Hey @nick the repository is live, it’s the props-fuels repo (see slack)
Unfortunately that’s the only output we get from fuelup
Hey @xpluscal , Can you please share the repo with me? Also, lets continue our conversation here
Hey @Nazeeh21 sorry for the delayed response - you can look at the props-fuels repo, I’ll DM you branch
@Nazeeh21 this issue only happens when compiling the contract using forc build - has contract max size changed?
This is the exact error:
Immediate12TooLarge { val: 4099, span: Span { src (ptr): 0x600002e781c0, source_id: None, start: 0, end: 0, as_str(): "" } }
It is indeed contract size. A more descriptive error would be amazing
1 Like
Is it correct that the limit is 4096 (assuming bytes?)
Is this new?
Last week we deployed our editions successfully, now when I try to compile them locally I get the Immediate12TooLarge error. Help appreciated.
Actually looking at ignition limits it should be way higher, so I take back if it’s contract size.
Issue was related to a compiler issue with inlining larger functions.
Workaround is to move the inline function out and refer to it from inline.
system
Closed
November 5, 2024, 1:28am
15
This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.