From bfbcb5e22b471b58b191036e7441d3c5dfd5b379 Mon Sep 17 00:00:00 2001 From: glihm Date: Tue, 10 Oct 2023 20:52:05 -0600 Subject: [PATCH] take mut ref instead of ownership to change call_block_id --- starknet-macros/src/abigen/expand/contract.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/starknet-macros/src/abigen/expand/contract.rs b/starknet-macros/src/abigen/expand/contract.rs index 445e7c3f..c5aae7dc 100644 --- a/starknet-macros/src/abigen/expand/contract.rs +++ b/starknet-macros/src/abigen/expand/contract.rs @@ -43,7 +43,7 @@ impl CairoContract { Self { address, provider, call_block_id } } - pub fn set_call_block_id(mut self, block_id: starknet::core::types::BlockId) { + pub fn set_call_block_id(&mut self, block_id: starknet::core::types::BlockId) { self.call_block_id = block_id; }