Skip to content

Commit

Permalink
Update native.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-dydx committed Apr 2, 2024
1 parent 8350213 commit 5cb5372
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v4-client-js/src/clients/native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,7 @@ export async function getWithdrawalCapacityByDenom(denom: string): Promise<strin
try {
const validatorClient = globalThis.client.validatorClient;
const result = await validatorClient.get.getWithdrawalCapacityByDenom(denom);
return encodeJson(result);
return encodeJson(result, ByteArrayEncoding.BIGINT);
} catch (e) {
return wrappedError(e);
}
Expand All @@ -1199,7 +1199,7 @@ export async function getWithdrawalAndTransferGatingStatus(): Promise<string> {
try {
const validatorClient = globalThis.client.validatorClient;
const result = await validatorClient.get.GetWithdrawalAndTransferGatingStatus();
return encodeJson(result);
return encodeJson(result, ByteArrayEncoding.BIGINT);
} catch (e) {
return wrappedError(e);
}
Expand Down

0 comments on commit 5cb5372

Please sign in to comment.