fix condition

This commit is contained in:
Karol Wypchlo 2021-10-26 16:39:19 +02:00
parent cd95dc2f4b
commit 7004ea0dfe
No known key found for this signature in database
GPG Key ID: C92C016317A964D0
1 changed files with 1 additions and 1 deletions

View File

@ -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();
// 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!");
}