Skip to content

Commit

Permalink
new minter contract, free domains disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
tempe-techie committed Oct 2, 2023
1 parent 1d032d6 commit 050ac7c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
2 changes: 0 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ export default {
watch: {
address(newVal, oldVal) {
if (newVal) {
this.checkUserDomainBalance();
this.setUserData();
this.fetchUserDomainNames(true);
this.checkIfAdmin();
Expand All @@ -121,7 +120,6 @@ export default {
}
if (this.chainId >= 1) {
this.checkUserDomainBalance();
this.setUserData();
this.setNetworkData();
this.fetchUserDomainNames(true);
Expand Down
8 changes: 2 additions & 6 deletions src/store/modules/tld.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default {
tldContract: null,
tldChainId: 324,
tldChainName: "zkSync Era",
minterAddress: "0x346F859312527e5B2f34C22b645015e8764c0B14", // TODO
minterAddress: "0x0453B90095E756427392980B7a6430d0dbD5611b", // TODO
minterContract: null,
minterLoadingData: false,
minterPaused: true,
Expand Down Expand Up @@ -74,11 +74,7 @@ export default {
return state.minterTldPrice4;
},
getMinterTldPrice5(state) {
if (isActivated.value && state.balance > 0) {
return state.minterTldPrice5;
} else {
return 0;
}
return state.minterTldPrice5;
},
getReferralFee(state) {
return state.referralFee;
Expand Down
4 changes: 1 addition & 3 deletions src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@
</tr>
<tr>
<td>5+ characters</td>
<td v-if="Number(getMinterTldPrice5) > 0">{{getMinterTldPrice5}} {{getPaymentTokenName}}</td>
<td v-if="Number(getMinterTldPrice5) == 0">FREE</td>
<td>{{getMinterTldPrice5}} {{getPaymentTokenName}}</td>
</tr>
</tbody>
</table>
Expand Down Expand Up @@ -266,7 +265,6 @@ export default {
onClick: () => window.open(this.getBlockExplorerBaseUrl+"/tx/"+tx.hash, '_blank').focus()
});
this.addDomainManually(fullDomainName);
this.checkUserDomainBalance();
this.waiting = false;
} else {
this.toast.dismiss(toastWait);
Expand Down

0 comments on commit 050ac7c

Please sign in to comment.