File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -19,3 +19,5 @@ parking_lot = "0.11.0"
1919bp-messages = { path = " ../../primitives/messages" }
2020bp-runtime = { path = " ../../primitives/runtime" }
2121relay-utils = { path = " ../utils" }
22+
23+ sp-arithmetic = { git = " https://github.com/paritytech/substrate" , branch = " master" }
Original file line number Diff line number Diff line change 2121
2222use num_traits:: { SaturatingAdd , Zero } ;
2323use relay_utils:: { BlockNumberBase , HeaderId } ;
24+ use sp_arithmetic:: traits:: AtLeast32BitUnsigned ;
2425use std:: { fmt:: Debug , ops:: Sub } ;
2526
2627/// One-way message lane.
@@ -40,7 +41,8 @@ pub trait MessageLane: 'static + Clone + Send + Sync {
4041 /// 1) pay transaction fees;
4142 /// 2) pay message delivery and dispatch fee;
4243 /// 3) pay relayer rewards.
43- type SourceChainBalance : Clone
44+ type SourceChainBalance : AtLeast32BitUnsigned
45+ + Clone
4446 + Copy
4547 + Debug
4648 + PartialOrd
You can’t perform that action at this time.
0 commit comments