Skip to content

Instantly share code, notes, and snippets.

@bargst
Created December 3, 2018 21:16
Show Gist options
  • Save bargst/f8820bea76341c2bde40a8f70066bf64 to your computer and use it in GitHub Desktop.
Save bargst/f8820bea76341c2bde40a8f70066bf64 to your computer and use it in GitHub Desktop.
class Test():
def out_literals() -> (int128, address, bytes[10]) : constant
@public
def out_literals() -> (int128, address, bytes[10]):
return 1, 0x0000000000000000000000000000000000000000, "random"
@public
def test(addr: address) -> (int128, address, bytes[10]):
a: int128
b: address
c: bytes[10]
#(a, b, c) = self.out_literals()
(a, b, c) = Test(addr).out_literals()
return a, b,c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment