fix bugs (public verifier)

This commit is contained in:
Alexey 2019-08-04 20:57:01 +03:00
parent 9b4d3bc34e
commit 7997fe2582
3 changed files with 5 additions and 5 deletions

View File

@ -26,7 +26,7 @@ contract Mixer is MerkleTreeWithHistory {
mapping(uint256 => bool) public nullifierHashes; mapping(uint256 => bool) public nullifierHashes;
// we store all commitments just to prevent accidental deposits with the same commitment // we store all commitments just to prevent accidental deposits with the same commitment
mapping(uint256 => bool) public commitments; mapping(uint256 => bool) public commitments;
IVerifier verifier; IVerifier public verifier;
event Deposit(uint256 indexed commitment, uint256 leafIndex, uint256 timestamp); event Deposit(uint256 indexed commitment, uint256 leafIndex, uint256 timestamp);
event Withdraw(address to, uint256 nullifierHash, uint256 fee); event Withdraw(address to, uint256 nullifierHash, uint256 fee);

View File

@ -12,7 +12,7 @@
"build:contract": "npx truffle compile", "build:contract": "npx truffle compile",
"test": "npx truffle test", "test": "npx truffle test",
"migrate": "npx truffle migrate --network kovan --reset", "migrate": "npx truffle migrate --network kovan --reset",
"migrate:mainnet": "npx truffle migrate --network mainnet --reset", "migrate:mainnet": "npx truffle migrate --network mainnet",
"migrate:dev": "npx truffle migrate --network development --reset", "migrate:dev": "npx truffle migrate --network development --reset",
"browserify": "npx browserify cli.js -o index.js --exclude worker_threads", "browserify": "npx browserify cli.js -o index.js --exclude worker_threads",
"eslint": "npx eslint --ignore-path .gitignore .", "eslint": "npx eslint --ignore-path .gitignore .",

View File

@ -52,10 +52,10 @@ module.exports = {
skipDryRun: true skipDryRun: true
}, },
mainnet: { mainnet: {
provider: () => new HDWalletProvider(process.env.PRIVATE_KEY, 'https://mainnet.infura.io/v3/c7463beadf2144e68646ff049917b716'), provider: () => new HDWalletProvider(process.env.PRIVATE_KEY, 'http://ethereum-rpc.trustwalletapp.com'),
network_id: 1, network_id: 1,
gas: 5000000, gas: 6000000,
gasPrice: utils.toWei('3.1', 'gwei'), gasPrice: utils.toWei('2', 'gwei'),
// confirmations: 0, // confirmations: 0,
// timeoutBlocks: 200, // timeoutBlocks: 200,
skipDryRun: true skipDryRun: true