diff --git a/lib/middleware-common/src/metering.rs b/lib/middleware-common/src/metering.rs index 0b95e5f97..cf82b66d1 100644 --- a/lib/middleware-common/src/metering.rs +++ b/lib/middleware-common/src/metering.rs @@ -43,7 +43,8 @@ impl FunctionMiddleware for Metering { | Operator::BrTable { .. } | Operator::BrIf { .. } | Operator::Call { .. } - | Operator::CallIndirect { .. } => { + | Operator::CallIndirect { .. } + | Operator::Return => { sink.push(Event::Internal(InternalEvent::GetInternal(0))); sink.push(Event::WasmOwned(Operator::I64Const { value: self.current_block as i64,