Skip to content

Commit 481e8bf

Browse files
authored
fix: use send_ok for EstimateUserOpGas response to properly encode NativeTaskResponse (#3661)
1 parent c72854c commit 481e8bf

File tree

1 file changed

+1
-3
lines changed
  • tee-worker/omni-executor/native-task-handler/src

1 file changed

+1
-3
lines changed

tee-worker/omni-executor/native-task-handler/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -874,9 +874,7 @@ async fn handle_native_task<
874874
{
875875
Ok(gas_estimates) => {
876876
info!("Gas estimation successful: {:?}", gas_estimates);
877-
if let Err(e) = response_sender.send(gas_estimates.encode()) {
878-
error!("Failed to send gas estimation response: {:?}", e);
879-
}
877+
send_ok(response_sender, gas_estimates);
880878
},
881879
Err(e) => {
882880
send_error(

0 commit comments

Comments
 (0)