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