Skip to content

Commit

Permalink
Add constants
Browse files Browse the repository at this point in the history
  • Loading branch information
lserra-iov committed Apr 26, 2024
1 parent 6cef300 commit 5c4c81d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/common/store/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,3 +309,6 @@ export const MAINNET_ADDRESS_NSEGWIT = '^[bc1][0-9A-HJ-NP-Za-z]{41,62}';
export const POWPEG_RSKT_HEADER = '52534b5401';
export const PEGIN_OUTPUTS = 3;
export const COOKIE_EXPIRATION_HOURS = 12;

export const POWPEG = 'powpeg';
export const FLYOVER = 'flyover';
2 changes: 1 addition & 1 deletion src/pegout/components/FlyoverPegout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ export default defineComponent({
}));
async function send(quoteHash: string) {
const type = quoteHash ? 'flyover' : 'powpeg';
const type = quoteHash ? constants.FLYOVER : constants.POWPEG;
pegOutFormState.value.send('loading');
try {
if (quoteHash) {
Expand Down
2 changes: 1 addition & 1 deletion src/pegout/components/PegOutForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ export default defineComponent({
name: 'PegOutSuccess',
params: {
wallet: currentWallet.value,
type: 'powpeg',
type: constants.POWPEG,
},
});
context.emit('changePage', nextPage);
Expand Down

0 comments on commit 5c4c81d

Please sign in to comment.