[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:
František Kočí
2022-03-14 23:21:17 +01:00
committed by GitHub
parent 1258615a0c
commit 53d01d8a6a
2 changed files with 3 additions and 2 deletions

View File

@@ -5,6 +5,7 @@ Subscribe to [the **xrpl-announce** mailing list](https://groups.google.com/g/xr
## Unreleased
### Fixed
* Type of TrustSet transaction edited, specifically LimitAmount property type (fixed typescript issue)
* Remove unnecessary console.warn for partial payments (#1783, #1784, #1896)
## 2.1.1 (2021-12-23)

View File

@@ -1,5 +1,5 @@
import { ValidationError } from '../../errors'
import { Amount } from '../common'
import { IssuedCurrencyAmount } from '../common'
import {
BaseTransaction,
@@ -102,7 +102,7 @@ export interface TrustSet extends BaseTransaction {
* Object defining the trust line to create or modify, in the format of a
* Currency Amount.
*/
LimitAmount: Amount
LimitAmount: IssuedCurrencyAmount
/**
* 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