From 4a1073e399ca0e33bd7e04ec2045e28224ddf72d Mon Sep 17 00:00:00 2001 From: rileystephens28 Date: Fri, 1 Nov 2024 12:52:10 -0500 Subject: [PATCH] Convert rate input amount to hex string --- src/providers/abstract-provider.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/providers/abstract-provider.ts b/src/providers/abstract-provider.ts index 07484997..7c4dbc4d 100644 --- a/src/providers/abstract-provider.ts +++ b/src/providers/abstract-provider.ts @@ -636,13 +636,13 @@ export type PerformActionRequest = | { method: 'getQiRateAtBlock'; blockTag: BlockTag; - amt: number; + amt: string; zone: Zone; } | { method: 'getQuaiRateAtBlock'; blockTag: BlockTag; - amt: number; + amt: string; zone: Zone; } | { @@ -900,7 +900,7 @@ export class AbstractProvider implements Provider { await this.#perform({ method: 'getQuaiRateAtBlock', blockTag: resolvedBlockTag, - amt: Number(amt), + amt: toQuantity(String(amt)), zone: zone, }), ); @@ -982,7 +982,7 @@ export class AbstractProvider implements Provider { await this.#perform({ method: 'getQiRateAtBlock', blockTag: resolvedBlockTag, - amt: Number(amt), + amt: toQuantity(String(amt)), zone: zone, }), );