Skip to content

Commit

Permalink
🔧 Create Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
bal7hazar committed Jul 19, 2023
1 parent f818165 commit 86960d4
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.PHONY: build test format declare

build:
scarb build

format:
scarb fmt

test:
scarb test

declare:
starkli declare target/dev/pufu_${CONTRACT}.sierra.json

declare-pufu:
$(MAKE) declare CONTRACT=pufu

declare-erc20:
$(MAKE) declare CONTRACT=erc20

declare-erc721:
$(MAKE) declare CONTRACT=erc721
2 changes: 1 addition & 1 deletion src/pufu.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ mod pufu {
}

#[constructor]
fn constructor(ref self: ContractState, class_hash: felt252, owner: ContractAddress, ) {
fn constructor(ref self: ContractState, class_hash: felt252, owner: ContractAddress) {
self._class_hash_erc20.write(class_hash.try_into().unwrap());
self._owner.write(owner);
}
Expand Down

0 comments on commit 86960d4

Please sign in to comment.