fix condition
This commit is contained in:
parent
cd95dc2f4b
commit
7004ea0dfe
|
@ -16,7 +16,7 @@ async function skydConfigCheck(done) {
|
||||||
const response = await got(`http://10.10.10.10:9980/renter`, { headers: { "User-Agent": "Sia-Agent" } }).json();
|
const response = await got(`http://10.10.10.10:9980/renter`, { headers: { "User-Agent": "Sia-Agent" } }).json();
|
||||||
|
|
||||||
// make sure initial funding is set to a non zero value
|
// make sure initial funding is set to a non zero value
|
||||||
if (BigInt(response.settings.allowance.paymentcontractinitialfunding) > 0) {
|
if (BigInt(response.settings.allowance.paymentcontractinitialfunding) === 0) {
|
||||||
throw new Error("Skynet Portal Per-Contract Budget is not set!");
|
throw new Error("Skynet Portal Per-Contract Budget is not set!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue