diff --git a/packages/cw0/src/handlers.rs b/packages/cw0/src/handlers.rs index 787f34227..c4114f020 100644 --- a/packages/cw0/src/handlers.rs +++ b/packages/cw0/src/handlers.rs @@ -282,18 +282,17 @@ impl From> for ActionResponse { } } -pub struct Router<'a, 'b, S, A> +pub struct Router where S: Storage + Default, A: Api, - 'a: 'b { - wasm: WasmRouter>, + wasm: WasmRouter>, // TODO: bank router // LATER: staking router } -impl<'a, 'b, S, A> Querier for &Router<'a, 'b, S, A> +impl Querier for Router where S: Storage + Default, A: Api, @@ -308,12 +307,12 @@ where }) } }; - let contract_result: ContractResult = self.query(&request).into(); + let contract_result: ContractResult = self.query(request).into(); SystemResult::Ok(contract_result) } } -impl<'a, 'b, S, A> Router<'a, 'b, S, A> +impl Router where S: Storage + Default, A: Api,