-
-
Save charlietilt/f0486be8a48e5a020b96c1166f8e2556 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%lang starknet | |
from starkware.cairo.common.cairo_builtins import HashBuiltin | |
from starkware.starknet.common.syscalls import get_caller_address | |
@view | |
func get_caller { | |
pedersen_ptr: HashBuiltin*, | |
range_check_ptr, | |
syscall_ptr: felt* | |
} () -> (address: felt): | |
let (address) = get_caller_address() | |
return (address) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment