Compare commits
5 Commits
b01ffed0b2
...
ipfs-defau
| Author | SHA1 | Date | |
|---|---|---|---|
| 077b6fb1c1 | |||
| 1c097f37a6 | |||
|
|
d3fb1010d5
|
||
| f390b5dff5 | |||
|
|
1e4f7be5cf
|
File diff suppressed because one or more lines are too long
@@ -5,7 +5,7 @@ const fetch = require('node-fetch');
|
|||||||
class IPFS {
|
class IPFS {
|
||||||
constructor (config) {
|
constructor (config) {
|
||||||
if (!config) {
|
if (!config) {
|
||||||
config = { host: 'localhost', port: '5001', protocol: 'http' };
|
config = { host: 'ipfs.kosmos.org', port: '5444', protocol: 'https' };
|
||||||
}
|
}
|
||||||
this._config = config;
|
this._config = config;
|
||||||
this._ipfsAPI = ipfsClient.create(config);
|
this._ipfsAPI = ipfsClient.create(config);
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ describe("Contributor contract", async function () {
|
|||||||
expect(c['balance']).to.equal(0);
|
expect(c['balance']).to.equal(0);
|
||||||
await Contributor.connect(addr1).withdraw();
|
await Contributor.connect(addr1).withdraw();
|
||||||
c = await Contributor.getContributorById(2);
|
c = await Contributor.getContributorById(2);
|
||||||
expect(c['balance'].toString()).to.equal("6500000000000000000000");
|
expect(c['balance']).to.equal(6500);
|
||||||
expect(c['kreditsWithdrawn']).to.equal(6500);
|
expect(c['kreditsWithdrawn']).to.equal(6500);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user