Last active
August 29, 2015 14:21
-
-
Save tinybike/e844e69603250317cf10 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
| Augur = require('augur.js'); | |
| Augur.connect(); | |
| var tx = { | |
| from: Augur.coinbase, | |
| to: "0xa4805a8c5313e53269a523dfac6b44f436fdfd8e", | |
| method: "saveString", | |
| signature: "is", | |
| params: [1, "I, String"] | |
| }; | |
| Augur.invoke(tx); |
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
| # testnet address: 0x1acff3423a5f035fe3e3cb629a42a0280ad44fac | |
| data myHappyPlace[](myString[2048]) | |
| def init(): | |
| s = text("boom") | |
| save(self.myHappyPlace[9001].myString[0], s, chars=len(s)) | |
| def saveString(me, s: str): | |
| save(self.myHappyPlace[me].myString[0], s, chars=len(s)) | |
| return(2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment