make sending checks less strict
This commit is contained in:
parent
751869fb63
commit
bc4b4196f4
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue