@stellar/stellar-base 14.0.0-rc.1 → 14.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/stellar-base.js +5 -3
- package/dist/stellar-base.min.js +1 -1
- package/lib/address.js +5 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
5
|
|
|
6
|
+
## [`v14.0.0-rc.2`](https://github.com/stellar/js-stellar-base/compare/v13.1.0...v14.0.0-rc.2)
|
|
7
|
+
|
|
8
|
+
### Fixed
|
|
9
|
+
* Fixes a bug in `Address.toScAddress()` that would prevent claimable balances and muxed accounts from being encoded correctly.
|
|
10
|
+
|
|
11
|
+
|
|
6
12
|
## [`v14.0.0-rc.1`](https://github.com/stellar/js-stellar-base/compare/v13.1.0...v14.0.0-rc.1): Protocol 23
|
|
7
13
|
|
|
8
14
|
### Breaking Changes
|
package/dist/stellar-base.js
CHANGED
|
@@ -24230,12 +24230,14 @@ var Address = /*#__PURE__*/function () {
|
|
|
24230
24230
|
return src_xdr.ScAddress.scAddressTypeAccount(src_xdr.PublicKey.publicKeyTypeEd25519(this._key));
|
|
24231
24231
|
case 'contract':
|
|
24232
24232
|
return src_xdr.ScAddress.scAddressTypeContract(this._key);
|
|
24233
|
-
case 'claimableBalance':
|
|
24234
|
-
return src_xdr.ScAddress.scAddressTypeClaimableBalance(this._key);
|
|
24235
24233
|
case 'liquidityPool':
|
|
24236
24234
|
return src_xdr.ScAddress.scAddressTypeLiquidityPool(this._key);
|
|
24235
|
+
case 'claimableBalance':
|
|
24236
|
+
return src_xdr.ScAddress.scAddressTypeClaimableBalance(new src_xdr.ClaimableBalanceId("claimableBalanceIdTypeV".concat(this._key.at(0)),
|
|
24237
|
+
// future-proof for cb v1
|
|
24238
|
+
this._key.subarray(1)));
|
|
24237
24239
|
case 'muxedAccount':
|
|
24238
|
-
return src_xdr.ScAddress.scAddressTypeMuxedAccount(this._key);
|
|
24240
|
+
return src_xdr.ScAddress.scAddressTypeMuxedAccount(src_xdr.MuxedEd25519Account.fromXDR(this._key));
|
|
24239
24241
|
default:
|
|
24240
24242
|
throw new Error("Unsupported address type: ".concat(this._type));
|
|
24241
24243
|
}
|