Skip to content

Commit

Permalink
getFee returns a string not float
Browse files Browse the repository at this point in the history
> api.connect().then(() => api.getFee().then(fee => console.log(typeof fee)));
> string
  • Loading branch information
Alan Cohen committed Dec 2, 2015
1 parent 7eae3ce commit 7bf2da6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -749,7 +749,7 @@ return api.getFee().then(fee => {/* ... */});
```

```json
0.012
"0.012"
```

## getLedgerVersion
Expand Down
4 changes: 2 additions & 2 deletions docs/src/getFee.md.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -19,5 +19,5 @@ return api.getFee().then(fee => {/* ... */});
```

```json
0.012
"0.012"
```

0 comments on commit 7bf2da6

Please sign in to comment.