Created
February 19, 2020 13:32
-
-
Save KardanovIR/a51836a9428befc01027dc8845855d98 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
@Callable(invoke) | |
func callMeBaby() = { | |
let callerAddress = invoke.caller.bytes.toBase58String() | |
if (takeRight(invoke.caller.bytes, 4) == base16'ABCD') then | |
TransferSet([ | |
ScriptTransfer(invoke.caller, 100000000, unit) | |
]) | |
else | |
throw("You didn't win") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment