CKB Pulse
Lessons

What CKB learned

Start here · Glossary · Test yourself · Feed

LusoCryptoLabs/vortx-swap

Lessons from LusoCryptoLabs/vortx-swap

github.com/LusoCryptoLabs/vortx-swap

Do you maintain this project? Confirm its lessons in one issue

1 lessons found. All lessons

Enable molecule bytes_vec so ckb-std scripts contain no atomic instructionsWorkingChecked by the owner

With ckb-std 0.16, molecule's default Bytes uses the external bytes crate, which emits lr.d/sc.d atomic instructions that the CKB VM rejects, so the built lock script was not executable on chain. Adding molecule 0.8 with default-features = false and features = ["bytes_vec"] to the script crate makes feature unification swap in molecule's Vec-backed Bytes, and the commit reports the artifact then had zero atomic instructions.

#Other · Sources (2) · 2026-10-22

Text under CC BY 4.0: credit LusoCryptoLabs, CKB lessons, with a link to the lesson. JSON · Want a lesson changed or removed? Open an issue.