Mathieu
Mathieu
Where applicable, use default implementations of traits. https://book.cairo-lang.org/ch08-02-traits-in-cairo.html?highlight=Default%20impl#default-implementations edit: as it seems that generics cannot be used in default impls, this is probably not going to be useful.
## Pull Request type Please check the type of change your PR introduces: - [ ] Bugfix - [ ] Feature - [ ] Code style update (formatting, renaming) -...
In CairoZero, the address of an EVM storage is computed as ``` // @notice Compute the storage address of the given key when the storage var interface is // Account_storage(key:...
CairoZero had `__default__` entrypoints, calling default would fallback on a generic behavior. We don't have this now, but what we can do is create a special type of DefaultDispatcher, that...
Related to https://github.com/kkrt-labs/kakarot-ssj/issues/818, we want to replicate the behavior of accounts being transparent proxies and all calls being redirected to `__default__`.
# Bug Report **Cairo version:** 2.8.2 - last edition **Current behavior:** https://github.com/kkrt-labs/kakarot-ssj/blob/main/crates/contracts/tests/test_ownable.cairo#L57-L75 calling `is_zero` generates an LS error with **Expected behavior:** Zeroable is internal to the corelib, so no diagnostic...
# Feature Request **Describe the Feature Request** Allow this feature: ```rust fn f(){} fn h(){} #[cfg(test)] mod tests { use super::*; #[test] fn test_f(){ f() } } ``` This would...
# Feature Request **Describe the Feature Request** As i'm still used to manipulate low-level memory segments coming from CairoZero, I find it unpractical to not be able to iterate over...
# Feature Request **Describe the Feature Request** Most of the times, the values we're working with are hashes, classes, addresses, etc. Having them displayed in decimal is not very useful...
# Feature Request **Describe the Feature Request** The `Vec` type is for now an append-only data structure. We can only append at the end, and retrieve existing values. We could...