diff options
Diffstat (limited to 'sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt')
-rw-r--r-- | sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt index 0dc7b742..cd886e55 100644 --- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt +++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt @@ -545,14 +545,14 @@ private suspend fun confirmWithdrawal(call: ApplicationCall) { logger.debug("Withdrawal ${wo.wopid} confirmed? ${wo.confirmationDone}") if (!wo.confirmationDone) { wireTransfer( - debitAccount = wo.walletBankAccount, - creditAccount = exchangeBankAccount, + debitAccount = wo.walletBankAccount.label, + creditAccount = exchangeBankAccount.label, amount = wo.amount, subject = wo.reservePub ?: throw internalServerError( "Cannot transfer funds without reserve public key." ), // provide the currency. - demobank = ensureDemobank(call) + demobank = ensureDemobank(call).name ) wo.confirmationDone = true } @@ -1347,9 +1347,9 @@ val sandboxApp: Application.() -> Unit = { * of 'bankAccount' be correctly accessed. */ transaction { wireTransfer( - debitAccount = bankAccount, - creditAccount = getBankAccountFromIban(payto.iban), - demobank = bankAccount.demoBank, + debitAccount = bankAccount.label, + creditAccount = getBankAccountFromIban(payto.iban).label, + demobank = bankAccount.demoBank.name, subject = payto.message ?: throw badRequest( "'message' query parameter missing in Payto address" ), |