Skip to content

Commit be283e8

Browse files
committed
clippy
1 parent 79f2a38 commit be283e8

File tree

2 files changed

+2
-2
lines changed
  • aa-core/src/smart_account
  • server/src/execution_router

2 files changed

+2
-2
lines changed

aa-core/src/smart_account/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub trait SmartAccount {
4747
}
4848

4949
/// Encode a batch transaction call to the account
50-
fn encode_execute_batch(&self, batch: &Vec<InnerTransaction>) -> Bytes {
50+
fn encode_execute_batch(&self, batch: &[InnerTransaction]) -> Bytes {
5151
executeBatchCall {
5252
_target: batch
5353
.iter()

server/src/execution_router/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ impl ExecutionRouter {
102102
let encoded_calldata = if transactions.len() == 1 {
103103
smart_account.encode_execute(&transactions[0])
104104
} else {
105-
smart_account.encode_execute_batch(&transactions.to_vec())
105+
smart_account.encode_execute_batch(transactions)
106106
};
107107

108108
// Create rules for UserOp restrictions

0 commit comments

Comments
 (0)