difftreelog
merge develop
in: master
6 files changed
crates/evm-coder-macros/src/solidity_interface.rsdiffbeforeafterboth--- a/crates/evm-coder-macros/src/solidity_interface.rs
+++ b/crates/evm-coder-macros/src/solidity_interface.rs
@@ -801,6 +801,7 @@
let generics = self.generics;
let gen_ref = generics_reference(&generics);
let gen_data = generics_data(&generics);
+ let gen_where = &generics.where_clause;
let call_sub = self
.info
@@ -956,7 +957,9 @@
return Ok(None);
}
}
- impl #generics ::evm_coder::Weighted for #call_name #gen_ref {
+ impl #generics ::evm_coder::Weighted for #call_name #gen_ref
+ #gen_where
+ {
#[allow(unused_variables)]
fn weight(&self) -> ::evm_coder::execution::DispatchInfo {
match self {
@@ -971,7 +974,9 @@
}
}
}
- impl #generics ::evm_coder::Callable<#call_name #gen_ref> for #name {
+ impl #generics ::evm_coder::Callable<#call_name #gen_ref> for #name
+ #gen_where
+ {
#[allow(unreachable_code)] // In case of no inner calls
fn call(&mut self, c: Msg<#call_name #gen_ref>) -> ::evm_coder::execution::ResultWithPostInfo<::evm_coder::abi::AbiWriter> {
use ::evm_coder::abi::AbiWrite;
crates/evm-coder/tests/generics.rsdiffbeforeafterboth--- a/crates/evm-coder/tests/generics.rs
+++ b/crates/evm-coder/tests/generics.rs
@@ -34,3 +34,15 @@
}
generate_stubgen!(gen_iface, GenericCall<()>, false);
+
+#[solidity_interface(name = "GenericWhere")]
+impl<T> Generic<T>
+where
+ T: core::fmt::Debug,
+{
+ fn test_3(&self) -> Result<uint256> {
+ todo!()
+ }
+}
+
+generate_stubgen!(gen_where_iface, GenericWhereCall<()>, false);
launch-config.jsondiffbeforeafterboth10 "port": 30444,10 "port": 30444,11 "flags": [11 "flags": [12 "-lparachain::candidate_validation=debug",12 "-lparachain::candidate_validation=debug",13 "-lxcm=trace"13 "-lxcm=trace",14 "--rpc-cors=all",15 "--unsafe-rpc-external",16 "--unsafe-ws-external"14 ]17 ]15 },18 },16 {19 {20 "port": 30555,23 "port": 30555,21 "flags": [24 "flags": [22 "-lparachain::candidate_validation=debug",25 "-lparachain::candidate_validation=debug",23 "-lxcm=trace"26 "-lxcm=trace",27 "--rpc-cors=all",28 "--unsafe-rpc-external",29 "--unsafe-ws-external"24 ]30 ]25 },31 },26 {32 {29 "rpcPort": 9865,35 "rpcPort": 9865,30 "port": 30666,36 "port": 30666,31 "flags": [37 "flags": [32 "-lparachain::candidate_validation=debug"38 "-lparachain::candidate_validation=debug",39 "-lxcm=trace",40 "--rpc-cors=all",41 "--unsafe-rpc-external",42 "--unsafe-ws-external"33 ]43 ]34 },44 },35 {45 {38 "rpcPort": 9876,48 "rpcPort": 9876,39 "port": 30777,49 "port": 30777,40 "flags": [50 "flags": [41 "-lparachain::candidate_validation=debug"51 "-lparachain::candidate_validation=debug",52 "-lxcm=trace",53 "--rpc-cors=all",54 "--unsafe-rpc-external",55 "--unsafe-ws-external"42 ]56 ]43 },57 },44 {58 {47 "rpcPort": 9887,61 "rpcPort": 9887,48 "port": 30888,62 "port": 30888,49 "flags": [63 "flags": [50 "-lparachain::candidate_validation=debug"64 "-lparachain::candidate_validation=debug",65 "-lxcm=trace",66 "--rpc-cors=all",67 "--unsafe-rpc-external",68 "--unsafe-ws-external"51 ]69 ]52 }70 }53 ],71 ],runtime/opal/src/lib.rsdiffbeforeafterboth--- a/runtime/opal/src/lib.rs
+++ b/runtime/opal/src/lib.rs
@@ -178,7 +178,7 @@
spec_name: create_runtime_str!(RUNTIME_NAME),
impl_name: create_runtime_str!(RUNTIME_NAME),
authoring_version: 1,
- spec_version: 921000,
+ spec_version: 921080,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
runtime/quartz/src/lib.rsdiffbeforeafterboth--- a/runtime/quartz/src/lib.rs
+++ b/runtime/quartz/src/lib.rs
@@ -163,7 +163,7 @@
spec_name: create_runtime_str!(RUNTIME_NAME),
impl_name: create_runtime_str!(RUNTIME_NAME),
authoring_version: 1,
- spec_version: 921000,
+ spec_version: 921080,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
runtime/unique/src/lib.rsdiffbeforeafterboth--- a/runtime/unique/src/lib.rs
+++ b/runtime/unique/src/lib.rs
@@ -168,7 +168,7 @@
spec_name: create_runtime_str!(RUNTIME_NAME),
impl_name: create_runtime_str!(RUNTIME_NAME),
authoring_version: 1,
- spec_version: 921000,
+ spec_version: 921080,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,