From 198222d29f871e0434fe1131861f995aa916dbf1 Mon Sep 17 00:00:00 2001 From: ponderingdemocritus Date: Tue, 29 Aug 2023 14:28:24 +1000 Subject: [PATCH] updates --- README.md | 2 +- src/beasts.cairo | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3063bc1..724e439 100644 --- a/README.md +++ b/README.md @@ -90,4 +90,4 @@ starknet invoke --function mint --address --account pusscode ## Test -starkli deploy 0x031356a71c184985f63f4766f9c05cb939897bdb088391c11add23fdc80d6b83 0x3481bceb5771419b69cac998eece0cbf6be21699cdfb1a736f3c28796efbd7d 0x0 0x424541535453 0x424541535453 --account ./account \ No newline at end of file +starkli deploy 0x02cb532fc4a77e28eca87132b5326830aaf5fa87c6fb3cdc4314a4219ce0545f 0x3481bceb5771419b69cac998eece0cbf6be21699cdfb1a736f3c28796efbd7d 0x0 0x424541535453 0x424541535453 --account ./account --keystore ./keys \ No newline at end of file diff --git a/src/beasts.cairo b/src/beasts.cairo index fadf9d7..5c6cd67 100644 --- a/src/beasts.cairo +++ b/src/beasts.cairo @@ -114,8 +114,8 @@ mod Beasts { fn _assertOnlyOwner(self: @ContractState) { let owner: ContractAddress = self._owner.read(); let caller: ContractAddress = get_caller_address(); - // assert(!caller.is_zero(), 'Zero address'); - // assert(caller == owner, 'Not owner'); + assert(!caller.is_zero(), 'Zero address'); + assert(caller == owner, 'Not owner'); } fn _transferOwnership(ref self: ContractState, to: ContractAddress) {