arnaucube
arnaucube/circomlibPublic Self-hosted repository
Some format and fixes from the last version
Jordi Baylina jordi@baylina.cat
Mon, 08 Jul 2019 14:33:37 +0200
commit

42ff01fb3ba67cd3f4b64dbf67f261422964ab2a

parent

861a75e0cb3384d49c25d1f9d39de6a7ec60229f

1 files changed, 2 insertions(+), 12 deletions(-)

jump to
M test/mimcspongecontract.js → test/mimcspongecontract.js

@@ -1,4 +1,4 @@

-const TestRPC = require("ganache-cli"); +const ganache = require("ganache-cli"); const Web3 = require("web3"); const chai = require("chai"); const mimcGenContract = require("../src/mimcsponge_gencontract.js");

@@ -17,19 +17,9 @@ let mimc;

let accounts; before(async () => { - testrpc = TestRPC.server({ - ws: true, - gasLimit: 5800000, - total_accounts: 10, - }); - - testrpc.listen(8546, "127.0.0.1"); - - web3 = new Web3("ws://127.0.0.1:8546"); + web3 = new Web3(ganache.provider(), null, { transactionConfirmationBlocks: 1 }); accounts = await web3.eth.getAccounts(); }); - - after(async () => testrpc.close()); it("Should deploy the contract", async () => { const C = new web3.eth.Contract(mimcGenContract.abi);