-
Notifications
You must be signed in to change notification settings - Fork 398
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
Assets Call Runtime #963
Assets Call Runtime #963
Conversation
That would be a breaking change in Shibuya, even though it's a testnet, I'm not sure we should just remove it. |
pub struct CallRuntimeFilter; | ||
impl Contains<RuntimeCall> for CallRuntimeFilter { | ||
fn contains(c: &RuntimeCall) -> bool { | ||
match *c { | ||
RuntimeCall::Assets(pallet_assets::Call::transfer { .. }) => true, | ||
RuntimeCall::Assets(pallet_assets::Call::transfer_approved { .. }) => true, | ||
_ => 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.
Wouldn't you also need approve in this case?
* Add value param to 'XvmCall'. * Fix precompile tests. * Update types in CE & precompiles. * Add EVM call tests for XVM. * New type idiom for EthereumTxInput. * Add XVM integration tests. * More XVM integration tests. * Fix runtime tests. * Move contract deploy helpers to setup.rs. * Update value adjustment for wasm payable calls. * More pallet-xvm unit tests. * Update pallet-xvm weight info. * Apply review suggestions. * Fix runtime tests. * Calling WASM payable from EVM fails if caller contract balance below ED. * Update weight info. * Fix unit tests.
* pallet-xvm max weight limit config. * Fix runtime tests. * Forbid XVM re-entrancy. * XVM Re-entrance tests. * Naming consistency. * XVM precompile: respect caller's gas limit setting. * Remove max weight limit config from pallet-xvm. * Remove unused XVM call error. * Add tests for XVM precompile gas limit.
* feat: add batch precompile * typo * add tests * minor fixes and updates * refactor, add batch to local * fix expect_arguments * add logs * update license * taplo fix * more refactor, remote evm crate * remove evm crate, update utils version, add std in dappsstaking * update pallet_balances::config in mock * update pallet_evm config * update license * add to std-feature * utils: rectify patch to minor update * remove pub from logs function * fix typos * remove comments * refactor * fmt
* Automatic EVM revert code registration for XC20 * Add negative test * Fmt fix * Add EVM module * Asset benchmarks * Cleanup xc asset config * Update asset benchmarks * Fix tests features
edcc9c2
to
ff3011c
Compare
Minimum allowed line rate is |
Pull Request Summary
This PR removes chain extensions from the runtime.
Add assets_pallet transfer & transfer_approved in call filter to allow call_runtime in ink! contracts.
Note: call_runtime host function has been stabilized recently #13901 but we need to allow unstable interface in the meantime.
Check list