The event length would be zero when emitted after a successful upgrade (class replacement).
Since after calling replace_class_syscall
, the code currently executing from the old class will finish running, the event in the arm Result::OK()
would have the length of zero.
https://github.com/Cyfrin/2024-07-ark-project/blob/main/apps/blockchain/starknet/src/bridge.cairo#L190
https://docs.starknet.io/architecture-and-concepts/smart-contracts/system-calls-cairo1/#replace_class
During upgrade, the expected event will have length of zero.
Emitting event in this case can be removed.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.