mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-21 04:35:49 +00:00
[Small Type error Fix]TrustSet LimitAmount Type changed (#1937)
* TrustSet interface amount type changed Before this edit, if you worked with TrustSet transaction response and you wanted to get LimitAmount.currency, LimitAmount.issuer, and LimitAmount.value, you would get a type error that those properties do not exist on the type string of LimitAmount. This very little edit changes that and now it should work properly. * Update HISTORY.md
This commit is contained in:
@@ -5,6 +5,7 @@ Subscribe to [the **xrpl-announce** mailing list](https://groups.google.com/g/xr
|
|||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
* Type of TrustSet transaction edited, specifically LimitAmount property type (fixed typescript issue)
|
||||||
* Remove unnecessary console.warn for partial payments (#1783, #1784, #1896)
|
* Remove unnecessary console.warn for partial payments (#1783, #1784, #1896)
|
||||||
|
|
||||||
## 2.1.1 (2021-12-23)
|
## 2.1.1 (2021-12-23)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { ValidationError } from '../../errors'
|
import { ValidationError } from '../../errors'
|
||||||
import { Amount } from '../common'
|
import { IssuedCurrencyAmount } from '../common'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
BaseTransaction,
|
BaseTransaction,
|
||||||
@@ -102,7 +102,7 @@ export interface TrustSet extends BaseTransaction {
|
|||||||
* Object defining the trust line to create or modify, in the format of a
|
* Object defining the trust line to create or modify, in the format of a
|
||||||
* Currency Amount.
|
* Currency Amount.
|
||||||
*/
|
*/
|
||||||
LimitAmount: Amount
|
LimitAmount: IssuedCurrencyAmount
|
||||||
/**
|
/**
|
||||||
* Value incoming balances on this trust line at the ratio of this number per
|
* Value incoming balances on this trust line at the ratio of this number per
|
||||||
* 1,000,000,000 units. A value of 0 is shorthand for treating balances at
|
* 1,000,000,000 units. A value of 0 is shorthand for treating balances at
|
||||||
|
|||||||
Reference in New Issue
Block a user