From 02046b56806927da58ca5265c3ce5219751701e5 Mon Sep 17 00:00:00 2001 From: AKnownEntity Date: Thu, 7 Dec 2023 11:45:03 +0000 Subject: [PATCH 1/2] chore: update private-key docs example to convert num to str --- .gitbook/transactions/private-key.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitbook/transactions/private-key.md b/.gitbook/transactions/private-key.md index 888432219..b60119187 100644 --- a/.gitbook/transactions/private-key.md +++ b/.gitbook/transactions/private-key.md @@ -32,7 +32,7 @@ const chainId = 'injective-1' /* ChainId.Mainnet */ const restEndpoint = 'https://lcd.injective.network' /* getNetworkEndpoints(Network.Mainnet).rest */ const amount = { - amount: new BigNumberInBase(0.01).toWei().toFixed(), + amount: new BigNumberInBase(0.01).toWei().toFixed().toString(), denom: 'inj', } @@ -162,7 +162,7 @@ import { BigNumberInBase, DEFAULT_STD_FEE } from '@injectivelabs/utils' /** Prepare the Message */ const amount = { - amount: new BigNumberInBase(0.01).toWei().toFixed(), + amount: new BigNumberInBase(0.01).toWei().toFixed().toString(), denom: 'inj', } @@ -231,7 +231,7 @@ const privateKey = '0x...' const injectiveAddress = 'inj1...' const amount = { denom: 'inj', - amount: new BigNumberInBase(1).toWei(), + amount: new BigNumberInBase(1).toWei().toString(), } const msg = MsgSend.fromJSON({ amount, From 965d7b48741694cbfba963a7c8c8dc3993f67277 Mon Sep 17 00:00:00 2001 From: AKnownEntity Date: Thu, 7 Dec 2023 11:56:54 +0000 Subject: [PATCH 2/2] chore: pr review --- .gitbook/transactions/private-key.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitbook/transactions/private-key.md b/.gitbook/transactions/private-key.md index b60119187..ea7bcc3ec 100644 --- a/.gitbook/transactions/private-key.md +++ b/.gitbook/transactions/private-key.md @@ -32,7 +32,7 @@ const chainId = 'injective-1' /* ChainId.Mainnet */ const restEndpoint = 'https://lcd.injective.network' /* getNetworkEndpoints(Network.Mainnet).rest */ const amount = { - amount: new BigNumberInBase(0.01).toWei().toFixed().toString(), + amount: new BigNumberInBase(0.01).toWei().toFixed(), denom: 'inj', } @@ -162,7 +162,7 @@ import { BigNumberInBase, DEFAULT_STD_FEE } from '@injectivelabs/utils' /** Prepare the Message */ const amount = { - amount: new BigNumberInBase(0.01).toWei().toFixed().toString(), + amount: new BigNumberInBase(0.01).toWei().toFixed(), denom: 'inj', } @@ -231,7 +231,7 @@ const privateKey = '0x...' const injectiveAddress = 'inj1...' const amount = { denom: 'inj', - amount: new BigNumberInBase(1).toWei().toString(), + amount: new BigNumberInBase(1).toWei().toFixed(), } const msg = MsgSend.fromJSON({ amount,