Skip to content

Commit ab9cea6

Browse files
authored
Fix type definition of optional parameter (#691)
1 parent 4182cca commit ab9cea6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
## Unreleased
55

6+
### Fixed
7+
* `nativeToScVal` now allows anything to be passed to the `opts.type` specifier. Previously, it was only integer types ([#691](https://github.com/stellar/js-stellar-base/pull/691)).
8+
69

710
## [`v10.0.0-beta.0`](https://github.com/stellar/js-stellar-base/compare/v9.0.0...v10.0.0-beta.0): Protocol 20
811

types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,7 @@ export class ScInt extends XdrLargeInt {
11261126
}
11271127

11281128
export function scValToBigInt(scv: xdr.ScVal): bigint;
1129-
export function nativeToScVal(val: any, opts?: { type: ScIntType }): xdr.ScVal;
1129+
export function nativeToScVal(val: any, opts?: { type: any }): xdr.ScVal;
11301130
export function scValToNative(scv: xdr.ScVal): any;
11311131

11321132
interface SorobanEvent {

0 commit comments

Comments
 (0)