Last active
August 29, 2015 14:26
-
-
Save tinybike/67830c2d7fc20994d2ac to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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