Closed enitrat closed 2 weeks ago
The issue is that a dependency doesn't compile.
we need to make sure that scarb gives an error on failing dependencies when doing scarb build
.
(in your case for example scarb test
works)
Fixed on Scarb main (as demonstrated with https://github.com/maciektr/cairo-test-run/actions/runs/10563264433/job/29263096711)
Bug Report
Cairo version: 2.7.1
I mistakenly imported a trait from the parent module, without this trait existing in the parent module. The following error followed when trying to compile:
stack trace:
Related code:
https://github.com/kkrt-labs/kakarot-ssj/blob/bug-repro/crates/evm/src/backend/starknet_backend.cairo#L127-L161
wrongly importing
use super::{State, StateTrait, deploy, StateChangeLogTrait};
when StateChangeLogTrait is not defined in the parent module and using it withtriggered the error