Rename healthcheck to PreflightChecker #49
@ -1,7 +1,7 @@
|
||||
|
||||
const ethers = require('ethers');
|
||||
const RSVP = require('rsvp');
|
||||
|
||||
const Healthcheck = require('./utils/healthcheck');
|
||||
![]() Why not just Why not just `Preflight.check()` if there's a checker method in that module anyway? I think it would read/look a bit nicer.
|
||||
const Preflight = require('./utils/preflight');
|
||||
![]() Why not just Why not just `Preflight.check()` if there's a checker method in that module anyway? I think it would read/look a bit nicer.
|
||||
|
||||
const ABIS = {
|
||||
Contributors: require('./abis/Contributors.json'),
|
||||
@ -97,8 +97,8 @@ class Kredits {
|
||||
![]() Why not just Why not just `Preflight.check()` if there's a checker method in that module anyway? I think it would read/look a bit nicer.
![]() Why not just Why not just `Preflight.check()` if there's a checker method in that module anyway? I think it would read/look a bit nicer.
|
||||
return this.contracts[name];
|
||||
}
|
||||
|
||||
healthcheck() {
|
||||
![]() Why not just Why not just `Preflight.check()` if there's a checker method in that module anyway? I think it would read/look a bit nicer.
|
||||
return new Healthcheck(this).check();
|
||||
![]() Why not just Why not just `Preflight.check()` if there's a checker method in that module anyway? I think it would read/look a bit nicer.
|
||||
preflightChecks() {
|
||||
![]() Why not just Why not just `Preflight.check()` if there's a checker method in that module anyway? I think it would read/look a bit nicer.
|
||||
return new Preflight(this).check();
|
||||
![]() Why not just Why not just `Preflight.check()` if there's a checker method in that module anyway? I think it would read/look a bit nicer.
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
![]() Why not just Why not just `Preflight.check()` if there's a checker method in that module anyway? I think it would read/look a bit nicer.
![]() Why not just Why not just `Preflight.check()` if there's a checker method in that module anyway? I think it would read/look a bit nicer.
|
@ -1,4 +1,4 @@
|
||||
class Healthcheck {
|
||||
class Preflight {
|
||||
constructor(kredits) {
|
||||
this.kredits = kredits;
|
||||
}
|
||||
@ -25,4 +25,4 @@ class Healthcheck {
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Healthcheck;
|
||||
module.exports = Preflight;
|
Why not just
Preflight.check()
if there's a checker method in that module anyway? I think it would read/look a bit nicer.Why not just
Preflight.check()
if there's a checker method in that module anyway? I think it would read/look a bit nicer.