gossamer
gossamer copied to clipboard
feat(wasmer): get and cache state version in instance context
Changes
Note this caches the state version for usages in several import functions (see #2664)
- [x] Codec support for Core_version and state_version
- [x] Cache state version in runtime instance context
- Set when creating instance
- Update when updating runtime code
- [x] Figure out how to handle
Core_version
not there in test runtimes
Tests
go test -tags integration github.com/ChainSafe/gossamer/lib/runtime/...
Issues
One more step towards #2418
Primary Reviewer
@timwu20
Codecov Report
Merging #2747 (20a41ee) into development (426569a) will decrease coverage by
0.08%
. The diff coverage is61.36%
.
Additional details and impacted files
@@ Coverage Diff @@
## development #2747 +/- ##
===============================================
- Coverage 63.12% 63.03% -0.09%
===============================================
Files 213 213
Lines 27034 27050 +16
===============================================
- Hits 17064 17051 -13
- Misses 8420 8446 +26
- Partials 1550 1553 +3
:tada: This PR is included in version 0.7.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket: