Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Migratetocairo2 #66

Draft
wants to merge 2 commits into
base: cairo2
Choose a base branch
from
Draft

Conversation

ccolorado
Copy link

Migrated ex01.
Pending dependencies with ex00base migration

ccolorado added 2 commits July 9, 2023 01:31
…functions

```cairo
error: Identifier not found.
 --> ex01.cairo:32:57
    use starknet_cairo_101::utils::ex00_base::Ex00Base::validate_exercise;
                                                        ^***************^

error: Identifier not found.
 --> ex01.cairo:33:57
    use starknet_cairo_101::utils::ex00_base::Ex00Base::ex_initializer;
                                                        ^************^

error: Identifier not found.
 --> ex01.cairo:34:57
    use starknet_cairo_101::utils::ex00_base::Ex00Base::distribute_points;
                                                        ^***************^

error: Identifier not found.
 --> ex01.cairo:35:57
    use starknet_cairo_101::utils::ex00_base::Ex00Base::update_class_hash_by_admin;
```
                                                        ^************************^
mod Ex00Base {
// Core Library Imports
use starknet::get_caller_address;
use zeroable::Zeroable;
use starknet::ContractAddress;
use starknet::ContractAddressZeroable;
// use starknet::ContractAddressZeroable;
Copy link

@TosinJs TosinJs Jul 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using this (starknet::contract_address::ContractAddressZeroable) in place of the comment.

https://book.cairo-lang.org/appendix-05-most-common-types-and-traits.html#:~:text=starknet%3A%3Acontract_address%3A%3AContractAddressZeroable

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants