Skip to content

Commit

Permalink
Create MrNithi.vy
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNithi authored Oct 3, 2021
1 parent 514c3b1 commit 2914088
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Vyper/MrNithi.vy
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# @version 0.2.8

COFFEE: constant(String[6]) = "Coffee"

coffee: public(String[6])

@external
def __init__():
self.coffee = COFFEE

@external
@view
def CoffeeToCode() -> String[4]:
return concat(slice(self.coffee, 0, 2), "d", slice(self.coffee, 4, 1))

0 comments on commit 2914088

Please sign in to comment.