mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 20:25:48 +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
|
||||
|
||||
### 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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user