From 0c29b171fd03299c46578ecafa1e96c70aabffe2 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 10 Aug 2016 07:59:23 -0400 Subject: [PATCH] example on how to deploy a single contract with custom arguments --- demo/test/simple_storage_spec.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/demo/test/simple_storage_spec.js b/demo/test/simple_storage_spec.js index 392e80c68..b71da69c7 100644 --- a/demo/test/simple_storage_spec.js +++ b/demo/test/simple_storage_spec.js @@ -8,6 +8,8 @@ describe("SimpleStorage", function() { EmbarkSpec.sim.createAccounts(10, function() { EmbarkSpec.sim.setBalance(web3.eth.accounts[0], 1000000000000000000000, function() { EmbarkSpec.deployAll(done); + // or + // EmbarkSpec.deployContract('SimpleStorage', [100], done); }); }); }); @@ -28,4 +30,4 @@ describe("SimpleStorage", function() { }); }); -}) +});