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

Add spawn syscalls for ckb2023 #41

Merged
merged 4 commits into from
Apr 27, 2023
Merged

Add spawn syscalls for ckb2023 #41

merged 4 commits into from
Apr 27, 2023

Conversation

mohanson
Copy link
Collaborator

@mohanson mohanson commented Apr 21, 2023

Tests: https://github.com/nervosnetwork/ckb/blob/ckb2023/script/src/verify/tests/ckb_latest/features_since_v2023.rs

Note: The modification of ckb_utils.h comes from the command make fmt

@mohanson mohanson requested review from XuJiandong and xxuejie April 21, 2023 08:03
ckb_syscalls.h Outdated
@@ -377,6 +377,47 @@ int ckb_exec_cell(const uint8_t* code_hash, uint8_t hash_type, uint32_t offset,
argv);
}

typedef struct {
Copy link
Collaborator

@xxuejie xxuejie Apr 21, 2023

Choose a reason for hiding this comment

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

What about exposing this data structure directly? In general having too many arguments in C(I'm counting 9 or 10 below) is not a good thing.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I redesigned the API, now it takes fewer parameters

ckb_syscalls.h Show resolved Hide resolved
ckb_syscall_apis.h Outdated Show resolved Hide resolved
@mohanson mohanson merged commit b9d8023 into nervosnetwork:master Apr 27, 2023
@mohanson mohanson deleted the ckb2023 branch April 27, 2023 02:10
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.

3 participants