Closed cctdaniel closed 2 months ago
The compiler error "Too many arguments, cannot handle" has been resolved by refactoring the main.sw file. We moved some of the longer functions, particularly those within implementations, into separate internal functions. This approach reduced the complexity within the implementations and resolved the "Immediate12TooLarge" error.
The key changes included:
These modifications allowed the contract to compile successfully without changing its core functionality. The issue can now be closed as the deployment error has been resolved.
Related Component
compiler
Problem
Steps
git clone https://github.com/pyth-network/pyth-crosschain
cd target_chains/fuel/contracts
forc deploy --testnet
Possible Solution(s)
No response
Notes
forc build
works butforc deploy --testnet
fails with the errorInstalled components