Skip to content

Instantly share code, notes, and snippets.

@SAYONG
Created June 18, 2019 02:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SAYONG/393a52532d8ec866c9ef742fea399294 to your computer and use it in GitHub Desktop.
Save SAYONG/393a52532d8ec866c9ef742fea399294 to your computer and use it in GitHub Desktop.
SIZE: constant(uint256) = 3359
container: address[SIZE]
@public
def store(ipt: address[SIZE]):
for i in range(SIZE):
self.container[i] = ipt[i]
@public
def get(loc: int128) -> address:
return self.container[loc]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment