make sending checks less strict

This commit is contained in:
Riccardo Balbo 2024-10-22 10:54:05 +02:00
parent 751869fb63
commit bc4b4196f4
1 changed files with 1 additions and 4 deletions

View File

@ -1,4 +1,4 @@
import { getScopes, SCOPE_READ, SCOPE_RECEIVE, SCOPE_WRITE, getWallet, request } from 'wallets/blink/common'
import { getScopes, SCOPE_READ, SCOPE_WRITE, getWallet, request } from 'wallets/blink/common'
export * from 'wallets/blink'
export async function testSendPayment ({ apiKey, currency }, { logger }) {
@ -10,9 +10,6 @@ export async function testSendPayment ({ apiKey, currency }, { logger }) {
if (!scopes.includes(SCOPE_WRITE)) {
throw new Error('missing WRITE scope')
}
if (scopes.includes(SCOPE_RECEIVE)) {
throw new Error('RECEIVE scope must not be present')
}
currency = currency ? currency.toUpperCase() : 'BTC'
await getWallet(apiKey, currency)