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

fix(ckb): load the first 16 bytes of the XUDT cell data #212

Merged
merged 1 commit into from
Jun 3, 2024

Conversation

ShookLyngs
Copy link
Collaborator

@ShookLyngs ShookLyngs commented Jun 3, 2024

Changes

Reference

ref: https://blog.cryptape.com/enhance-sudts-programmability-with-xudt#heading-xudt-cell

XUDT cell
On top of sUDT, xUDT extends a cell as follows:

data:
    <amount: uint128> <xudt data>

@ShookLyngs ShookLyngs changed the title fix: load the first 32 bytes of the XUDT cell data fix(ckb): load the first 32 bytes of the XUDT cell data Jun 3, 2024
@ShookLyngs ShookLyngs force-pushed the fix/slice-xudt-cell-data branch from 123967a to ed3ca06 Compare June 3, 2024 07:52
@ShookLyngs ShookLyngs changed the title fix(ckb): load the first 32 bytes of the XUDT cell data fix(ckb): load the first 16 bytes of the XUDT cell data Jun 3, 2024
@Flouse Flouse merged commit 4c77e69 into develop Jun 3, 2024
1 check passed
@Flouse Flouse deleted the fix/slice-xudt-cell-data branch June 3, 2024 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use first 16 bytes of xUDT cell data as an amount
3 participants