We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79f2a38 commit be283e8Copy full SHA for be283e8
2 files changed
aa-core/src/smart_account/mod.rs
@@ -47,7 +47,7 @@ pub trait SmartAccount {
47
}
48
49
/// Encode a batch transaction call to the account
50
- fn encode_execute_batch(&self, batch: &Vec<InnerTransaction>) -> Bytes {
+ fn encode_execute_batch(&self, batch: &[InnerTransaction]) -> Bytes {
51
executeBatchCall {
52
_target: batch
53
.iter()
server/src/execution_router/mod.rs
@@ -102,7 +102,7 @@ impl ExecutionRouter {
102
let encoded_calldata = if transactions.len() == 1 {
103
smart_account.encode_execute(&transactions[0])
104
} else {
105
- smart_account.encode_execute_batch(&transactions.to_vec())
+ smart_account.encode_execute_batch(transactions)
106
};
107
108
// Create rules for UserOp restrictions
0 commit comments