Created
April 20, 2020 20:09
-
-
Save mariano-aguero/cd2fb6257a217bd2ecd89d370e0de1cf to your computer and use it in GitHub Desktop.
pool.ligo
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
function tokenProxy (const action : tokenAction; const store : store): operation is | |
block { | |
const tokenContract: contract (tokenAction) = | |
case (Tezos.get_contract_opt (store.token.contractAddress) : option (contract (tokenAction))) of | |
Some (contractAction) -> contractAction | |
| None -> (failwith ("Contract not found.") : contract (tokenAction)) | |
end; | |
const proxyOperation : operation = Tezos.transaction (action, 0mutez, tokenContract); | |
} with proxyOperation; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment