Commit f2367a2 1 parent 1dfb124 commit f2367a2 Copy full SHA for f2367a2
File tree 1 file changed +7
-1
lines changed
contracts/consumer/remote-price-feed/src
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,12 @@ pub struct RemotePriceFeedContract {
25
25
pub scheduler : Scheduler < Box < dyn Action > > ,
26
26
}
27
27
28
+ impl Default for RemotePriceFeedContract {
29
+ fn default ( ) -> Self {
30
+ Self :: new ( )
31
+ }
32
+ }
33
+
28
34
#[ cfg_attr( not( feature = "library" ) , sylvia:: entry_points) ]
29
35
#[ contract]
30
36
#[ error( ContractError ) ]
@@ -37,7 +43,7 @@ impl RemotePriceFeedContract {
37
43
price_info : Item :: new ( "price" ) ,
38
44
price_info_ttl_in_secs : Item :: new ( "price_ttl" ) ,
39
45
// TODO: the indirection can be removed once Sylvia supports
40
- // generics
46
+ // generics. The constructor can then probably be constant
41
47
scheduler : Scheduler :: new ( Box :: new ( handle_epoch) ) ,
42
48
}
43
49
}
You can’t perform that action at this time.
0 commit comments