Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

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

Merged
merged 5 commits into from
Aug 4, 2023

Conversation

Shaptic
Copy link
Contributor

@Shaptic Shaptic commented Aug 4, 2023

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
Copy link

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

🚮 Removed packages: [email protected]

@sreuland sreuland mentioned this pull request Aug 4, 2023
@Shaptic Shaptic merged commit c38439c into main Aug 4, 2023
@Shaptic Shaptic deleted the drop-hex-support branch August 4, 2023 21:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants