Skip to content

Conversation

mohanson
Copy link
Collaborator

@mohanson mohanson commented Aug 11, 2025

Allow load_cell_code to return a list of MemoryPageResult, indicating which memory pages it should or has modified.

Ref nervosnetwork/ckb-vm-contrib#22 (comment)

@mohanson mohanson requested review from XuJiandong and xxuejie August 11, 2025 03:39
let result = get().load_cell_code(buf_ptr, len, content_offset, content_size, index, source);
match result {
Ok(()) => Ok(len),
Ok(_) => Ok(len),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this style of API, you should iterate based on the result of load_cell_code, and then fill in the actual data for each MemoryPageResult structure.

@mohanson
Copy link
Collaborator Author

Due to design changes, this PR can be closed.

@mohanson mohanson closed this Sep 15, 2025
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.

2 participants