Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
byteZorvin committed Sep 3, 2024
1 parent e9965d4 commit 2150f85
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/appchain.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,7 @@ mod appchain {
#[abi(embed_v0)]
impl UpgradeableImpl of IUpgradeable<ContractState> {
fn upgrade(ref self: ContractState, new_class_hash: ClassHash) {
// This function can only be called by the owner
self.ownable.assert_only_owner();

// Replace the class hash upgrading the contract
self.upgradeable._upgrade(new_class_hash);
}
}
Expand Down

0 comments on commit 2150f85

Please sign in to comment.