diff --git a/bindings/rust/evmc-vm/src/lib.rs b/bindings/rust/evmc-vm/src/lib.rs index 29029f6..597488c 100644 --- a/bindings/rust/evmc-vm/src/lib.rs +++ b/bindings/rust/evmc-vm/src/lib.rs @@ -184,7 +184,7 @@ impl<'a> ExecutionContext<'a> { } } - pub fn get_tx_context(&mut self) -> &ExecutionTxContext { + pub fn get_tx_context(&self) -> &ExecutionTxContext { &self.tx_context }