From 7bf2da6014c87e164542e69356efeaabb575a157 Mon Sep 17 00:00:00 2001 From: Alan Cohen Date: Wed, 2 Dec 2015 13:17:35 -0800 Subject: [PATCH] getFee returns a string not float > api.connect().then(() => api.getFee().then(fee => console.log(typeof fee))); > string --- docs/index.md | 4 ++-- docs/src/getFee.md.ejs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/index.md b/docs/index.md index 5ee1b192..9de1758b 100644 --- a/docs/index.md +++ b/docs/index.md @@ -740,7 +740,7 @@ This method has no parameters. ### Return Value -This method returns a promise that resolves with a floating point value representing the estimated fee to submit a transaction, expressed in XRP. +This method returns a promise that resolves with a string encoded floating point value representing the estimated fee to submit a transaction, expressed in XRP. ### Example @@ -749,7 +749,7 @@ return api.getFee().then(fee => {/* ... */}); ``` ```json -0.012 +"0.012" ``` ## getLedgerVersion diff --git a/docs/src/getFee.md.ejs b/docs/src/getFee.md.ejs index e50ef1b0..e95b9cba 100644 --- a/docs/src/getFee.md.ejs +++ b/docs/src/getFee.md.ejs @@ -10,7 +10,7 @@ This method has no parameters. ### Return Value -This method returns a promise that resolves with a floating point value representing the estimated fee to submit a transaction, expressed in XRP. +This method returns a promise that resolves with a string encoded floating point value representing the estimated fee to submit a transaction, expressed in XRP. ### Example @@ -19,5 +19,5 @@ return api.getFee().then(fee => {/* ... */}); ``` ```json -0.012 +"0.012" ```