Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' into alex/fixTokenId
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex committed Jun 10, 2020
2 parents 23b5835 + a2338d8 commit 06863dc
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -38,5 +38,5 @@ jobs:

- name: "Run coverage"
script:
- ./node_modules/.bin/truffle run coverage
- ./node_modules/.bin/truffle run coverage -solcoverjs ./scripts/.solcover.js --network test
- cat ./coverage/lcov.info | node_modules/.bin/coveralls
5 changes: 5 additions & 0 deletions scripts/.solcover.js
@@ -0,0 +1,5 @@
module.exports = {
providerOptions: {
"port" : 8545
}
};
5 changes: 3 additions & 2 deletions test/helpers.js
Expand Up @@ -41,8 +41,9 @@ const createERC721DepositProposalData = (
};

const advanceBlock = () => {
let provider = new Ethers.providers.Web3Provider(web3.currentProvider);
return provider.send("evm_mine", [new Date().getTime()])
let provider = new Ethers.providers.JsonRpcProvider();
const time = Math.floor(Date.now() / 1000);
return provider.send("evm_mine", [time]);
}

const createGenericDepositData = (resourceID, hexMetaData) => {
Expand Down
6 changes: 6 additions & 0 deletions truffle-config.js
Expand Up @@ -53,6 +53,12 @@ module.exports = {
port: 8545, // Standard Ethereum port (default: none)
network_id: "5", // Any network (default: none)
},

test: {
host: "127.0.0.1", // Localhost (default: none)
port: 8545, // Standard Ethereum port (default: none)
network_id: "*", // Any network (default: none)
},
// Another network with more advanced options...
// advanced: {
// port: 8777, // Custom port
Expand Down

0 comments on commit 06863dc

Please sign in to comment.