Skip to content

Instantly share code, notes, and snippets.

@KardanovIR
Created February 19, 2020 13:32
Show Gist options
  • Save KardanovIR/a51836a9428befc01027dc8845855d98 to your computer and use it in GitHub Desktop.
Save KardanovIR/a51836a9428befc01027dc8845855d98 to your computer and use it in GitHub Desktop.
@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