Apply suggestions from code review

This commit is contained in:
einhornimmond 2025-08-06 12:16:19 +02:00 committed by GitHub
parent 7b529e05bf
commit 76ab75d049
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,8 +34,8 @@ export class SendCoinsClient {
async voteForSendCoins(args: EncryptedTransferArgs): Promise<string | null> {
logger.debug('voteForSendCoins against endpoint=', this.endpoint)
try {
const { data } = await this.client.rawRequest<any>(voteForSendCoinsQuery, { args })
const responseJwt: string = data?.voteForSendCoins
const { data } = await this.client.rawRequest<{ voteForSendCoins: string }>(voteForSendCoinsQuery, { args })
const responseJwt = data?.voteForSendCoins
if (responseJwt) {
logger.debug('received response jwt', responseJwt)
return responseJwt