Skip to content

Commit

Permalink
travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Aniket-Engg committed Dec 20, 2018
1 parent 504c44e commit 0ef5157
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
language: node_js
node_js:
- "node"
- "10"
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Build status](https://travis-ci.com/Aniket-Engg/sol-verifier.svg?branch=master)](https://travis-ci.com/Aniket-Engg/sol-verifier)

# sol-verifier
Verifying a contract on etherscan make your contract global and eligible for reading and writing on Etherscan. sol-verifier is an npm package which can be used to verify the ethereum contracts on Etherscan. It internally uses the Etherscan API.

Expand Down
8 changes: 4 additions & 4 deletions test/sol-verifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe('sol-verifier', () => {
contractName = 'Sample';
network = 'rinkeby';
contractAddress = await deployContract(contractName, network);
await sleep(21000); // To make sure that contractCode is stored
await sleep(30000); // To make sure that contractCode is stored
}catch(err){
throw err;
}
Expand All @@ -36,7 +36,7 @@ describe('sol-verifier', () => {
});

it('Trying to verify already verified contract (should fail)', async () => {
await sleep(15000); // To make sure that etherscan gets sufficient time to verify the contract above
await sleep(20000); // To make sure that etherscan gets sufficient time to verify the contract above
let response = await Verifier.verifyContract(sampleData);
response.status.should.equal('0');
response.result.should.equal('Contract source code already verified');
Expand Down Expand Up @@ -103,7 +103,7 @@ describe('sol-verifier', () => {
network = 'rinkeby';
constructParams.push(50);
contractAddress = await deployContract(contractName, network, constructParams);
await sleep(21000); // To make sure that contractCode is stored
await sleep(30000); // To make sure that contractCode is stored
}catch(err){
throw err;
}
Expand Down Expand Up @@ -143,7 +143,7 @@ describe('sol-verifier', () => {
network = 'rinkeby';
constructParams.push(40);
contractAddress = await deployContract(contractName, network, constructParams);
await sleep(21000); // To make sure that contractCode is stored
await sleep(30000); // To make sure that contractCode is stored
}catch(err){
throw err;
}
Expand Down

0 comments on commit 0ef5157

Please sign in to comment.