Fetch faucet address from services backend
This commit is contained in:
@@ -84,8 +84,8 @@
|
||||
}
|
||||
}
|
||||
<br>
|
||||
<div>
|
||||
If you no longer need your testnet4 coins, please consider sending them back to <a [routerLink]="['/address/' | relativeUrl, recycleAddress]">{{ recycleAddress }}</a> to replenish the faucet.
|
||||
<div *ngIf="status?.address">
|
||||
If you no longer need your testnet4 coins, please consider sending them back to <a [routerLink]="['/address/' | relativeUrl, status.address]">{{ status.address }}</a> to replenish the faucet.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -18,6 +18,7 @@ export class FaucetComponent implements OnInit, OnDestroy {
|
||||
user: any;
|
||||
loading: boolean = true;
|
||||
status: {
|
||||
address?: string,
|
||||
access: boolean
|
||||
min: number,
|
||||
user_max: number,
|
||||
@@ -26,7 +27,6 @@ export class FaucetComponent implements OnInit, OnDestroy {
|
||||
error = '';
|
||||
faucetForm: FormGroup;
|
||||
txid = '';
|
||||
recycleAddress = this.stateService.env.TESTNET4_FAUCET_ADDRESS || 'tb1q548z58kqvwyjqwy8vc2ntmg33d7s2wyfv7ukq4';
|
||||
|
||||
mempoolPositionSubscription: Subscription;
|
||||
confirmationSubscription: Subscription;
|
||||
|
||||
Reference in New Issue
Block a user