Skip to content

Commit

Permalink
Add storage linked list test. (#5965)
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbens-starkware authored Jul 5, 2024
1 parent b85b805 commit 72d1d2f
Show file tree
Hide file tree
Showing 2 changed files with 211 additions and 22 deletions.
8 changes: 8 additions & 0 deletions corelib/src/starknet/storage.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,14 @@ impl PendingStoragePathAsPath<T> of StorageAsPath<PendingStoragePath<T>> {
}
}

/// Deref pending storage path into a storage path.
impl PendingStoragePathDeref<T> of core::ops::Deref<PendingStoragePath<T>> {
type Target = StoragePath<T>;
fn deref(self: PendingStoragePath<T>) -> Self::Target {
self.as_path()
}
}

/// A struct for holding an address to initialize a storage path with. The members (not direct
/// members, but accessible using deref) of the contract state are `StorageBase` instances, with the
/// generic type representing the type of the stored member.
Expand Down
Loading

0 comments on commit 72d1d2f

Please sign in to comment.