feat: Remove generalisation on user approvals manager
This is a too early over generalisation. We need to encode the permit and the signature all together with the other method input variables. This way the return type will be specific to permit2 (instead Vec<u8>) anyway. For simplicity, decided to remove the generalisation and keep things simple --- don't change below this line --- ENG-4081 Took 2 hours 23 minutes Took 9 seconds Took 1 minute
This commit is contained in:
@@ -2,11 +2,10 @@ use crate::encoding::{
|
||||
errors::EncodingError,
|
||||
models::{Solution, Transaction},
|
||||
strategy_encoder::StrategySelector,
|
||||
user_approvals_manager::UserApprovalsManager,
|
||||
};
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub trait RouterEncoder<S: StrategySelector, A: UserApprovalsManager> {
|
||||
pub trait RouterEncoder<S: StrategySelector> {
|
||||
fn encode_router_calldata(
|
||||
&self,
|
||||
solutions: Vec<Solution>,
|
||||
|
||||
Reference in New Issue
Block a user