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

Consolidate method and args into a single opaque payload #147

Merged
merged 27 commits into from
Oct 17, 2024
Merged

Conversation

lrettig
Copy link
Contributor

@lrettig lrettig commented Oct 11, 2024

Fixes #146, also fixes #113

Remove method from low-level call host call (method selector moved into
input entirely)
call SDK now constructs the input correctly using the method selector.
Update the recursive call test accordingly.
Allow the use of a default selector.
And rebuild tests
Clean up tests
Add tests for method selector
Still working on getting tests to pass
For now working around #149
To work around cargo audit issue
@lrettig lrettig marked this pull request as ready for review October 15, 2024 02:35
@lrettig lrettig requested a review from poszu as a code owner October 15, 2024 02:35
ffi/vmlib/tests/integration_tests.rs Outdated Show resolved Hide resolved
sdk/src/lib.rs Outdated Show resolved Hide resolved
vm/sdk/src/call.rs Outdated Show resolved Hide resolved
runner/src/vm.rs Outdated Show resolved Hide resolved
vm/entrypoint/src/syscalls/host.rs Outdated Show resolved Hide resolved
interface/src/lib.rs Outdated Show resolved Hide resolved
interface/src/lib.rs Outdated Show resolved Hide resolved
interface/src/lib.rs Outdated Show resolved Hide resolved
interface/src/lib.rs Outdated Show resolved Hide resolved
interface/src/lib.rs Outdated Show resolved Hide resolved
@lrettig lrettig requested a review from poszu October 15, 2024 23:02
@lrettig lrettig mentioned this pull request Oct 15, 2024
interface/src/lib.rs Outdated Show resolved Hide resolved
interface/src/lib.rs Outdated Show resolved Hide resolved
interface/Cargo.toml Outdated Show resolved Hide resolved
core/src/syscall/host.rs Outdated Show resolved Hide resolved
core/src/syscall/host.rs Outdated Show resolved Hide resolved
core/src/runtime/mod.rs Outdated Show resolved Hide resolved
Make some function names more explicit
Remove unnecessary encode/decode fns
@lrettig lrettig requested a review from poszu October 16, 2024 21:39
@lrettig lrettig merged commit bb25c45 into main Oct 17, 2024
10 checks passed
@lrettig lrettig deleted the payload branch October 17, 2024 22:08
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.

Merge execution message input and method into single payload Use fixed-length method selector
2 participants