-
Notifications
You must be signed in to change notification settings - Fork 2
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(poc): e2e test with extension system #28
Conversation
indirection42
commented
Jun 17, 2024
•
edited
Loading
edited
- Modify core extension and fungibles extension
- Modify poc runtime to use extension system
poc/extensions/src/lib.rs
Outdated
let call_bytes = caller | ||
.read_memory_into_vec(call_ptr, call_len) | ||
.map_err(|_| ExtensionError::PolkavmError)?; | ||
if P::is_allowed(extension_id, &call_bytes, invoke_source) { | ||
#[cfg(feature = "std")] | ||
println!( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use log
crate for logging. e.g. log::info!("...")
poc/runtime/Cargo.toml
Outdated
pallet-timestamp = { version = "30.0.0", default-features = false } | ||
pallet-transaction-payment = { version = "31.0.0", default-features = false } | ||
pallet-transaction-payment-rpc-runtime-api = { version = "31.0.0", default-features = false } | ||
pallet-balances = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-v1.10.0", default-features = false } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why change to git?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At first, I added the pallet_assets
, but I didn't find the proper version to make it compatible with other pallets. The compiler told me some deps have two versions. So, I think it would be easy to use same git version tag to conform compatibility.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah that's annoying. use this to set the versions https://github.com/paritytech/psvm