@@ -18,7 +18,9 @@ use magicblock_committor_service::{
1818 intent_execution_manager:: BroadcastedIntentExecutionResult ,
1919 intent_executor:: ExecutionOutput , BaseIntentCommittor , CommittorService ,
2020} ;
21- use magicblock_core:: link:: transactions:: TransactionSchedulerHandle ;
21+ use magicblock_core:: link:: transactions:: {
22+ with_encoded, TransactionSchedulerHandle ,
23+ } ;
2224use magicblock_program:: {
2325 magic_scheduled_base_intent:: ScheduledIntentBundle ,
2426 register_scheduled_commit_sent, SentCommit , TransactionScheduler ,
@@ -199,10 +201,12 @@ impl ScheduledCommitsProcessorImpl {
199201 let sent_commit =
200202 Self :: build_sent_commit ( intent_id, intent_meta, result) ;
201203 register_scheduled_commit_sent ( sent_commit) ;
202- match internal_transaction_scheduler
203- . execute ( intent_sent_transaction)
204- . await
205- {
204+ let Ok ( txn) = with_encoded ( intent_sent_transaction) else {
205+ // Unreachable case, all intent transactions are smaller than 64KB by construction
206+ error ! ( "Failed to bincode intent transaction" ) ;
207+ return ;
208+ } ;
209+ match internal_transaction_scheduler. execute ( txn) . await {
206210 Ok ( ( ) ) => {
207211 debug ! ( "Sent commit signaled" )
208212 }
0 commit comments