Skip to content

Instantly share code, notes, and snippets.

@romanman
Created April 6, 2016 14:35
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 romanman/3488bc5a106f915e734ed10ea29dd75a to your computer and use it in GitHub Desktop.
Save romanman/3488bc5a106f915e734ed10ea29dd75a to your computer and use it in GitHub Desktop.
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