Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set_code_hash and get_code_hash #837

Merged
merged 2 commits into from
Aug 20, 2024
Merged

Conversation

chachaleo
Copy link
Contributor

@chachaleo chachaleo commented Aug 20, 2024

Pull Request type

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Build-related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

currently I have :

error[E0002]: Method write could not be called on type core::starknet::storage::storage_base::StorageBase::<core::integer::u256>.
Candidate StorageMapWriteAccess::write inference failed with: Trait has no implementation in context: core::starknet::storage::map::StorageMapWriteAccess::<core::starknet::storage::storage_base::StorageBase::core::integer::u256>.
Candidate StoragePointerWriteAccess::write inference failed with: Trait has no implementation in context: core::starknet::storage::StoragePointerWriteAccess::<core::starknet::storage::storage_base::StorageBase::core::integer::u256>.
--> /Users/charlotte/kakarot-ssj/crates/contracts/src/account_contract.cairo:157:36
self.Account_code_hash.write(code_hash);

Resolves: #829


This change is Reviewable

@enitrat enitrat added this pull request to the merge queue Aug 20, 2024
Merged via the queue into kkrt-labs:main with commit 751471d Aug 20, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: add get_code_hash / set_code_hash entrypoints to the account class
2 participants