-
Notifications
You must be signed in to change notification settings - Fork 443
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 integration-test
for calling a contract from a runtime pallet
#2189
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2189 +/- ##
=======================================
Coverage 61.27% 61.27%
=======================================
Files 139 139
Lines 5709 5709
Branches 2421 2421
=======================================
Hits 3498 3498
Misses 2211 2211 ☔ View full report in Codecov by Sentry. |
🦑 📈 ink! Example Contracts ‒ Changes Report 📉 🦑These are the results when building the
Link to the run | Last update: Mon Apr 8 13:26:01 CEST 2024 |
Adapted from (and superseding paritytech/substrate-contracts-node#228). It belongs better here, now that we can create our own "drink" style in process runtimes for testing.
A foundational step towards #1674, developing an API for calling into a contract from the runtime.
This PR
contract-caller
which allows calling into a flipper contractcreate_sandbox!
macro)ink
to construct the call for the contractflipper
contract with a trait and an e2e test which demonstrates it working: instantiates the contract, invokes the pallet, queries the modified state of the contract.The next step (in progress) is to work and iterate on the
ink
API itself, which will be a follow up PR