xJonathanLEI / starkli

Starkli (/ˈstɑːrklaɪ/), a ⚡ blazing ⚡ fast ⚡ CLI tool for Starknet powered by 🦀 starknet-rs 🦀
https://book.starkli.rs
Apache License 2.0
155 stars 43 forks source link

Can't compile Cairo contracts compiled with compiler v2.2 #63

Closed d-s-i closed 1 month ago

d-s-i commented 5 months ago

So I have contracts compiled with compiler version 2.2 (scarb 0.7) and when I try to deploy them with starkly I get

error: invalid value '2.2.0' for '--compiler-version <COMPILER_VERSION>'
  [possible values: 2.1.0, 2.4.0]

  tip: a similar value exists: '2.4.0'

For more information, try '--help'.

And if I try to compile with compiler v2.4 for example I get

Declaring Cairo 1 class: 0x02b7501440b04afd348928b6eb7b22a7e181cf0c5ba7c107489b08cc5decdd48
Compiling Sierra class to CASM with compiler version 2.4.0...
CASM class hash: 0x05400d2048ff37beaff03384b8c0e73f6df9d8660228ff6448b9469d2d6a3fca
Error: expected value at line 1 column 1

The thing is that I can only compile them with v2.2. Is there any solution to declare and deploy them ? If anyone wants to reproduce, I'm trying to redeploy the Loot Survivor contracts (https://github.com/BibliothecaDAO/loot-survivor/tree/production) and you must use Scarb v0.7 to build the contracts

xJonathanLEI commented 4 months ago

Hey sorry it looks like I completely missed this issue. Have you managed to resolve it? It looks like an RPC issue to me instead of compiler.