Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Commit

Permalink
feat: in-place toString()
Browse files Browse the repository at this point in the history
  • Loading branch information
gomesalexandre committed Dec 8, 2022
1 parent f8ff14c commit 52bf9a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/investor-foxy/src/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export class FoxyApi {
): Promise<{ nonce: string; gasPrice: string }> {
let nonce
try {
nonce = await this.provider.getTransactionCount(userAddress)
nonce = (await this.provider.getTransactionCount(userAddress)).toString()
} catch (e) {
throw new Error(`Get nonce Error: ${e}`)
}
Expand All @@ -192,7 +192,7 @@ export class FoxyApi {
} catch (e) {
throw new Error(`Get gasPrice Error: ${e}`)
}
return { nonce: nonce.toString(), gasPrice }
return { nonce, gasPrice }
}

async getFoxyOpportunities() {
Expand Down

0 comments on commit 52bf9a5

Please sign in to comment.