Skip to content

Commit

Permalink
removed legacy V2 Token switch and functions
Browse files Browse the repository at this point in the history
  • Loading branch information
aurorabor committed May 26, 2023
1 parent 2324b62 commit 3fb0469
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions src/pages/WalletPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -646,18 +646,6 @@
</vue-qrcode>
</q-responsive>
</div>
<div class="row">
<div class="col-12">
<q-toggle
class="float-right"
v-model="showSendTokenLegacyV2TokenToggleState"
color="pink"
icon="bedtime"
label="Old token format"
@click="sendTokenDialogSwitchTokenV3ToLegacyV2()"
/>
</div>
</div>
<div class="row">
<div class="col-12">
<q-input
Expand Down Expand Up @@ -859,8 +847,6 @@ export default {
showInvoiceDetails: false,
showPayInvoice: false,
showSendTokens: false,
showSendTokenLegacyV2Token: false,
showSendTokenLegacyV2TokenToggleState: ref(false),
showReceiveTokens: false,
promises: [],
tokens: [],
Expand Down Expand Up @@ -1322,24 +1308,6 @@ export default {
// kick off token check worker
this.checkTokenSpendableWorker();
},
sendTokenDialogSwitchTokenV3ToLegacyV2: function () {
// converts the (serialized) data in this.sendData.tokenBase64 between V2 and V3 token
if (!(this.sendData.tokens.length > 0)) {
// nothing to do
return;
}
if (this.showSendTokenLegacyV2Token) {
// convert to V3
this.sendData.tokensBase64 = this.serializeProofs(this.sendData.tokens);
this.showSendTokenLegacyV2Token = false;
} else {
// convert to V2
this.sendData.tokensBase64 = this.serializeProofsV2(
this.sendData.tokens
);
this.showSendTokenLegacyV2Token = true;
}
},
showSendTokensDialog: function () {
console.log("##### showSendTokensDialog");
this.sendData.tokens = "";
Expand Down

0 comments on commit 3fb0469

Please sign in to comment.