mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-06 14:56:54 +02:00
made function patterns consistent
This commit is contained in:
@@ -163,7 +163,9 @@ func balance() -> (res: felt){}
|
|||||||
// Constructors sets storage variables on deployment. Can accept arguments too.
|
// Constructors sets storage variables on deployment. Can accept arguments too.
|
||||||
@constructor
|
@constructor
|
||||||
func constructor{syscall_ptr: felt*, pedersen_ptr: HashBuiltin*,
|
func constructor{syscall_ptr: felt*, pedersen_ptr: HashBuiltin*,
|
||||||
range_check_ptr}() {balance.write(0); return();
|
range_check_ptr}() {
|
||||||
|
balance.write(0);
|
||||||
|
return();
|
||||||
}
|
}
|
||||||
|
|
||||||
// @dev increase_balance updates the balance variable
|
// @dev increase_balance updates the balance variable
|
||||||
|
Reference in New Issue
Block a user