Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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]

src/server.ts Show resolved Hide resolved
@sreuland sreuland mentioned this pull request Aug 4, 2023
@Shaptic Shaptic merged commit c38439c into main Aug 4, 2023
4 checks passed
@Shaptic Shaptic deleted the drop-hex-support branch August 4, 2023 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants