Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

v0: fix copy_code evmc host interface #142

Merged
merged 4 commits into from
Apr 8, 2022
Merged

v0: fix copy_code evmc host interface #142

merged 4 commits into from
Apr 8, 2022

Conversation

Flouse
Copy link
Collaborator

@Flouse Flouse commented Apr 7, 2022

Flouse added 3 commits April 7, 2022 18:00
…d_data

syscall fun sys_load_data(gw_ctx, data_hash, code_size, offset, code) =>
1. full_size = data.len - offset
2. in some partial code loading scenarios, full_size may be bigger than code_size
3. the `sys_load_data` function return full_size as new code_size.

see:
https://github.com/nervosnetwork/ckb/blob/39a2618/script/src/syscalls/utils.rs#L15-L19
`code_size` can't be larger than MAX_DATA_SIZE.
@Flouse Flouse changed the base branch from main to v0.8.x April 7, 2022 11:10
@Flouse Flouse requested review from jjyr and magicalne April 7, 2022 14:26
@Flouse Flouse marked this pull request as ready for review April 7, 2022 14:26
@Flouse Flouse merged commit 261970c into v0.8.x Apr 8, 2022
@Flouse Flouse deleted the v0.8 branch April 8, 2022 03:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants