File tree Expand file tree Collapse file tree 4 files changed +13
-19
lines changed Expand file tree Collapse file tree 4 files changed +13
-19
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
13
13
14
14
### Removed
15
15
- Removed chain extension functionality ‒ [ 2120] ( https://github.com/use-ink/cargo-contract/pull/2120 )
16
+ - Remove ` MAX_EVENT_TOPICS ` from ` Environment ` implementations - [ #2122 ] ( https://github.com/use-ink/cargo-contract/pull/2122 )
16
17
17
18
## [ 6.0.0-alpha.1]
18
19
Original file line number Diff line number Diff line change @@ -59,7 +59,6 @@ impl Config for Ecdsachain {
59
59
}
60
60
61
61
impl Environment for Ecdsachain {
62
- const MAX_EVENT_TOPICS : usize = <DefaultEnvironment as Environment >:: MAX_EVENT_TOPICS ;
63
62
const NATIVE_TO_ETH_RATIO : u32 =
64
63
<DefaultEnvironment as Environment >:: NATIVE_TO_ETH_RATIO ;
65
64
type AccountId = <DefaultEnvironment as Environment >:: AccountId ;
@@ -93,7 +92,6 @@ impl Config for Substrate {
93
92
}
94
93
95
94
impl Environment for Substrate {
96
- const MAX_EVENT_TOPICS : usize = <DefaultEnvironment as Environment >:: MAX_EVENT_TOPICS ;
97
95
const NATIVE_TO_ETH_RATIO : u32 =
98
96
<DefaultEnvironment as Environment >:: NATIVE_TO_ETH_RATIO ;
99
97
type AccountId = <DefaultEnvironment as Environment >:: AccountId ;
@@ -124,7 +122,6 @@ impl Config for Polkadot {
124
122
}
125
123
126
124
impl Environment for Polkadot {
127
- const MAX_EVENT_TOPICS : usize = <DefaultEnvironment as Environment >:: MAX_EVENT_TOPICS ;
128
125
const NATIVE_TO_ETH_RATIO : u32 =
129
126
<DefaultEnvironment as Environment >:: NATIVE_TO_ETH_RATIO ;
130
127
type AccountId = <DefaultEnvironment as Environment >:: AccountId ;
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ use anyhow::{
19
19
/*
20
20
// todo missing comparison for those. not sure if even exposed somewhere.
21
21
impl Environment for DefaultEnvironment {
22
- const MAX_EVENT_TOPICS: usize = 4;
23
22
}
24
23
*/
25
24
fn get_node_env_fields (
@@ -470,8 +469,6 @@ mod tests {
470
469
// let _ = generate_metadata();
471
470
let leaf = LeafLayout :: from_key :: < u8 > ( LayoutKey :: new ( 0_u8 ) ) ;
472
471
let layout = Layout :: Leaf ( leaf) ;
473
-
474
- const MAX_EVENT_TOPICS : usize = 4 ;
475
472
const NATIVE_TO_ETH_RATIO : u32 = 100_000_000 ;
476
473
const BUFFER_SIZE : usize = 1 << 14 ;
477
474
@@ -530,7 +527,6 @@ mod tests {
530
527
:: core:: convert:: AsRef :: as_ref,
531
528
) ,
532
529
) )
533
- . max_event_topics ( MAX_EVENT_TOPICS )
534
530
. native_to_eth_ratio ( NATIVE_TO_ETH_RATIO )
535
531
. static_buffer_size ( BUFFER_SIZE )
536
532
. done ( ) ,
You can’t perform that action at this time.
0 commit comments