mirror of
https://github.com/tornadocash/tornado-core.git
synced 2025-05-02 06:16:03 -04:00
add erc20 to integration test
This commit is contained in:
parent
7a184d67d2
commit
c7f0ca9dfa
3 changed files with 8 additions and 7 deletions
|
@ -4,9 +4,6 @@ const path = require('path')
|
|||
const genContract = require('circomlib/src/mimcsponge_gencontract.js')
|
||||
const Artifactor = require('truffle-artifactor')
|
||||
|
||||
const SEED = 'mimcsponge'
|
||||
|
||||
|
||||
module.exports = function(deployer) {
|
||||
return deployer.then( async () => {
|
||||
const contractsDir = path.join(__dirname, '..', 'build/contracts')
|
||||
|
@ -15,7 +12,7 @@ module.exports = function(deployer) {
|
|||
await artifactor.save({
|
||||
contractName,
|
||||
abi: genContract.abi,
|
||||
unlinked_binary: genContract.createCode(SEED, 220),
|
||||
unlinked_binary: genContract.createCode('mimcsponge', 220),
|
||||
}).then(async () => {
|
||||
const hasherContract = artifacts.require(contractName)
|
||||
await deployer.deploy(hasherContract)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue