fix: typo

This commit is contained in:
Rafael Taranto 2023-12-28 23:35:05 +00:00
parent b76f9fa44c
commit c0cd06993d

View file

@ -237,7 +237,7 @@ function balance (account, cryptoCode, settings, operatorId) {
return checkCryptoCode(cryptoCode)
.then(() => getGaloyAccount(account.apiSecret, account.endpoint))
.then(galoyAccount => {
const wallet = galoyAccount.walletByid
const wallet = galoyAccount.walletById
return new BN(wallet.balance || 0)
})
}