stellar / js-soroban-client

Main Soroban client library for the Javascript language
https://stellar.github.io/js-soroban-client/
Apache License 2.0
22 stars 17 forks source link

Explicitly drops support for hex-encoded contract IDs. #117

Closed Shaptic closed 1 year ago

Shaptic commented 1 year ago

This is related to stellar/js-stellar-base#650, which fully drops support for the now-deprecated hex encoding method for contracts. The SEP-23 strkey format is mandatory, now. You can migrate as such:

const strkey = StrKey.encodeContract(Buffer.from(hexContractId, 'hex'));

To enforce this, we also upgraded stellar-base.

socket-security[bot] commented 1 year ago

Removed dependencies detected. Learn more about Socket for GitHub ↗︎

🚮 Removed packages: stellar-base@10.0.0-soroban.4