Skip to content

Commit

Permalink
change lookup array
Browse files Browse the repository at this point in the history
  • Loading branch information
nikanor.goreglyad committed Jul 18, 2024
1 parent 2f83ed1 commit 49d7961
Show file tree
Hide file tree
Showing 3 changed files with 2,007 additions and 4,009 deletions.
1 change: 0 additions & 1 deletion src/amm_core/amm.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,6 @@ mod AMM {
}

fn upgrade(ref self: ContractState, new_implementation: ClassHash) {
self.ownable.assert_only_owner();
assert(!new_implementation.is_zero(), 'Class hash cannot be zero');
starknet::replace_class_syscall(new_implementation).unwrap();
}
Expand Down
Loading

0 comments on commit 49d7961

Please sign in to comment.