gizatechxyz / scarb-agent

All you need to build provable web3 Agents!
https://orion-giza.gitbook.io/scarb-agent
Apache License 2.0
4 stars 0 forks source link

Fix Runner when passing Array in hint #5

Closed raphaelDkhn closed 4 months ago

raphaelDkhn commented 4 months ago

I had to downgrade CairoVM to v1.0.0-rc2, otherwise we got the following error with arrays passing to the hint.

Error : Compilation(InvocationError { statement_idx : StatementIdx(124), error : UnknownVariableData })

I found that it's failing when cairo_lang_sierra_to_casm::compiler::compile(sierra_program, &metadata, config) I'll take a closer look at this error when the next release of CairoVM supporting Cairo 2.7.0 will be available.