diff --git a/ethers-middleware/src/timelag/mod.rs b/ethers-middleware/src/timelag/mod.rs index 61976d15..133b6e3d 100644 --- a/ethers-middleware/src/timelag/mod.rs +++ b/ethers-middleware/src/timelag/mod.rs @@ -37,6 +37,16 @@ pub struct TimeLag { inner: Arc, } +impl TimeLag +where + M: Middleware, +{ + /// Instantiates TimeLag provider + pub fn new(inner: M) -> Self { + Self { inner: inner.into() } + } +} + impl TimeLag where M: Middleware,