Skip to content

Commit

Permalink
added Ligo/OjusWiZard.jsligo (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
OjusWiZard authored Oct 2, 2022
1 parent df06d15 commit eba89ef
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Ligo/OjusWiZard.jsligo
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
type storage = string;

type parameter =
| ["ToCode", string];

type return_ = [list<operation>, storage];

let main = (action: parameter, store: storage) : return_ => {
return [
list([]),
match(action, {
ToCode: coffee => String.sub(0 as nat, 2 as nat, coffee)
+ "d"
+ String.sub(5 as nat, 1 as nat, coffee)
})
];
};

0 comments on commit eba89ef

Please sign in to comment.