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

feat: switch how to do dynamic link and validate interface to solve rust/Go pointer sharing issue #283

Merged
merged 10 commits into from
Apr 11, 2023

Conversation

loloicci
Copy link
Contributor

@loloicci loloicci commented Apr 7, 2023

Description

This PR is a part of #273 and switches how to do dynamic link and validate interfaces for other contracts. After merging this, the GetContractEnv and the GetWasmerModule APIs will not be used in the wasm module.
This PR also improves some contracts used by integration tests.

Types of changes

  • Bug fix (changes which fixes an issue)
  • New feature (changes which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality not to work as expected)
  • ETC (build, ci, docs, perf, refactor, style, test)

Checklist

@loloicci loloicci self-assigned this Apr 7, 2023
@loloicci loloicci added the dynamic_link relate the dynamic link call feature label Apr 7, 2023
@loloicci loloicci mentioned this pull request Apr 11, 2023
13 tasks
@loloicci loloicci requested a review from da1suk8 April 11, 2023 08:28
@da1suk8
Copy link
Member

da1suk8 commented Apr 11, 2023

@loloicci

I think it is better to remove the native_dynamic_link_trampoline_works() test as well.
It is not very clear why there is only this test.

some tests in vm/dynamic_link.rs are testing mock.rs's call_callable point.
this is verbose, and this mock will be removed in Finschia#273.
so this commit removes these tests.
@loloicci loloicci merged commit 6ce2d99 into Finschia:dynamic_link Apr 11, 2023
@loloicci loloicci deleted the rust-go-pointer-api branch April 11, 2023 10:13
@loloicci loloicci restored the rust-go-pointer-api branch April 11, 2023 10:41
@loloicci loloicci deleted the rust-go-pointer-api branch April 11, 2023 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dynamic_link relate the dynamic link call feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants