mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 22:11:06 +00:00
contracts: Make ChainExtension trait generic over the runtime (#8003)
This commit is contained in:
committed by
GitHub
parent
06b432caba
commit
26b093ea8a
@@ -143,9 +143,10 @@ impl Default for TestExtension {
|
||||
}
|
||||
}
|
||||
|
||||
impl ChainExtension for TestExtension {
|
||||
fn call<E: Ext>(func_id: u32, env: Environment<E, InitState>) -> ExtensionResult<RetVal>
|
||||
impl ChainExtension<Test> for TestExtension {
|
||||
fn call<E>(func_id: u32, env: Environment<E, InitState>) -> ExtensionResult<RetVal>
|
||||
where
|
||||
E: Ext<T = Test>,
|
||||
<E::T as SysConfig>::AccountId: UncheckedFrom<<E::T as SysConfig>::Hash> + AsRef<[u8]>,
|
||||
{
|
||||
match func_id {
|
||||
|
||||
Reference in New Issue
Block a user