Created
April 6, 2016 14:35
-
-
Save romanman/3488bc5a106f915e734ed10ea29dd75a 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
StandaloneBlockchain bc = new StandaloneBlockchain(); | |
SolidityContract contract = | |
bc.submitNewContract( | |
"contract A { uint a; ... }" | |
); | |
contract.callFunction("funcName", "arg1", | |
2, new byte[] {1,2,3}, "arg4"); | |
bc.createBlock() | |
System.out.println("Result: " + | |
contract.callConstFunction("getResultFunc")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment