Contributor app tests #143
@ -7,8 +7,6 @@
|
|||||||
"@aragon/cli": "^5.9.6"
|
"@aragon/cli": "^5.9.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@aragon/test-helpers": "^1.1.0",
|
|
||||||
"eth-ens-namehash": "^2.0.8",
|
|
||||||
"eth-gas-reporter": "^0.2.0",
|
"eth-gas-reporter": "^0.2.0",
|
||||||
"ganache-cli": "^6.4.3",
|
"ganache-cli": "^6.4.3",
|
||||||
"solidity-coverage": "^0.5.11"
|
"solidity-coverage": "^0.5.11"
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
|
|
|||||||
const namehash = require('eth-ens-namehash').hash;
|
const namehash = require('ethers').utils.namehash;
|
||||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
|||||||
|
|
||||||
// eslint-disable-next-line no-undef
|
// eslint-disable-next-line no-undef
|
||||||
const Contributor = artifacts.require("Contributor.sol");
|
const Contributor = artifacts.require("Contributor.sol");
|
||||||
|
|||||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
|||||||
we should be able to use the namehash from ethers:
const namehash = require('ethers').utils.namehash;as ethers.js is already a dependency we do not need to add another dependency
we should be able to use the namehash from ethers:
const namehash = require('ethers').utils.namehash;as ethers.js is already a dependency we do not need to add another dependency
cool will change that
cool will change that
for the ganache script, it is basically the same aragon one, but I changed
to
Because
npx truffle test --network rpc "$@"didn't work for me for no reason...for the ganache script, it is basically the same aragon one, but I changed
to
Because
npx truffle test --network rpc "$@"didn't work for me for no reason...