mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +00:00
Typo
This commit is contained in:
parent
f9bcecbe20
commit
a525f5200d
@ -88,10 +88,8 @@ export class Webserver {
|
||||
|
||||
try {
|
||||
await faucet.credit(address, matchingDenom);
|
||||
// Count IPs to prevent draining
|
||||
if (context.request.ip) {
|
||||
this.addressCounter.push({ address: address, date: Date.now() });
|
||||
}
|
||||
// Count addresses to prevent draining
|
||||
this.addressCounter.push({ address: address, date: Date.now() });
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
throw new HttpError(500, "Sending tokens failed");
|
||||
|
Loading…
x
Reference in New Issue
Block a user