Skip to content

Instantly share code, notes, and snippets.

@tinybike
Last active August 29, 2015 14:26
Show Gist options
  • Select an option

  • Save tinybike/67830c2d7fc20994d2ac to your computer and use it in GitHub Desktop.

Select an option

Save tinybike/67830c2d7fc20994d2ac to your computer and use it in GitHub Desktop.
data stuff[]
def load_stuff_success():
mystuff = array(2)
mystuff[0] = 4
mystuff[1] = 5
save(self.stuff[0], mystuff, items=2)
stuff = load(self.stuff[0], items=2)
# works!
return(stuff: arr)
def load_stuff_fail():
self.stuff[0] = 4
self.stuff[1] = 5
stuff = load(self.stuff[0], items=2)
# returns [4, 0] to pyethereum tester instead of [4, 5]
return(stuff: arr)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment