You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* add eoa transaction batching using 7702
- Implemented `calldata_for_self_execution` method in the `MinimalAccountTransaction` struct to facilitate self-execution of transactions.
- Added `moka` for caching in the execution router for authorization cache
* cleanup
* fix error message
message:format!("Failed to check 7702 delegation: {:?}", e),
426
+
})?;
427
+
428
+
if !is_minimal_account {
429
+
returnErr(EngineError::ValidationError{
430
+
message:"EOA is not a 7702 delegated account. Batching transactions requires 7702 delegation. Please send a 7702 transaction first to upgrade the EOA.".to_string(),
431
+
});
432
+
}
433
+
434
+
let calldata = delegated_account
435
+
.owner_transaction(transactions)
436
+
.calldata_for_self_execution();
437
+
438
+
InnerTransaction{
439
+
to:Some(eoa_execution_options.from),
440
+
data: calldata.into(),
441
+
gas_limit:None,
442
+
transaction_type_data:None,
443
+
value:U256::ZERO,
444
+
}
445
+
}else{
446
+
transactions[0].clone()
447
+
};
400
448
401
-
let transaction = &transactions[0];
402
449
let eoa_transaction_request = EoaTransactionRequest{
0 commit comments