File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
backend/src/modules/smartcontract/services Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -215,8 +215,6 @@ export class ContractService {
215
215
216
216
const balance = await this . getWalletBalance ( walletAddress ) ;
217
217
218
- console . log ( `Wallet: ${ walletAddress } , Balance: ` , balance )
219
-
220
218
if ( balance < this . faucetAmount ) {
221
219
const amountToSend = this . faucetAmount - balance ;
222
220
@@ -244,14 +242,12 @@ export class ContractService {
244
242
}
245
243
246
244
return `Success: Topped up ${ amountToSend } FDS to ${ walletAddress } .` ;
247
- } else {
248
- throw new GeneralException (
249
- ErrorTypeEnum . INTERNAL_SERVER_ERROR ,
250
- `already has a balance of ${ this . faucetAmount } FDS or more.` ,
251
- ) ;
252
245
}
253
246
254
-
247
+ throw new GeneralException (
248
+ ErrorTypeEnum . INTERNAL_SERVER_ERROR ,
249
+ `already has a balance of ${ this . faucetAmount } FDS or more.` ,
250
+ ) ;
255
251
}
256
252
257
253
async shareDevice (
You can’t perform that action at this time.
0 commit comments