File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -327,6 +327,7 @@ import {
327327 init as initOasisApi ,
328328 getHtlc ,
329329 HtlcStatus ,
330+ TransactionType as OasisTransactionType ,
330331} from ' ../../lib/OasisApi' ;
331332import { setupSwap } from ' ../../hub' ;
332333import { getElectrumClient } from ' ../../electrum' ;
@@ -725,9 +726,14 @@ export default defineComponent({
725726 value: swapSuggestion .to .amount ,
726727 fee: swapSuggestion .to .fee ,
727728 bankLabel: banks .value .sepa ! .name ,
728- settlement: {
729- type: ' mock' ,
730- // TODO: Change type to 'sepa' and add `recipient: { name, iban }` for Mainnet
729+ settlement: Config .environment === ENV_MAIN ? {
730+ type: OasisTransactionType .SEPA ,
731+ recipient: {
732+ name: bankAccounts .value .sepa ! .accountName ,
733+ iban: bankAccounts .value .sepa ! .iban ,
734+ },
735+ } : {
736+ type: OasisTransactionType .MOCK ,
731737 },
732738 };
733739 }
You can’t perform that action at this time.
0 commit comments