Commit 1eb6e36
chore: fix JS SDK default import for @stellar/stellar-sdk v16.0.0 (#2521)
js-stellar-sdk v16.0.0 removed the ESM default export (and merged
@stellar/stellar-base into @stellar/stellar-sdk). The string-to-ScVal
example used `import StellarSdk from "@stellar/stellar-sdk"`, which no
longer works. Switch to a namespace import (`import * as StellarSdk`)
to preserve the `StellarSdk.xdr.ScVal` body unchanged.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent bcb3d75 commit 1eb6e36
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
0 commit comments