We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reproduction:
#[starknet::contract] mod one { use starknet::storage::{StoragePointerReadAccess, StoragePointerWriteAccess}; use starknet::get_contract_address; use super::{IInc, IIncDispatcher, IIncDispatcherTrait}; #[storage] struct Storage { counter: u128 } #[abi(embed_v0)] impl IncImpl of IInc<ContractState> { #[nonreentrant] fn infinite_inc(ref self: ContractState) { self.counter.write(self.counter.read() + 1); IIncDispatcher { contract_address: get_contract_address() }.infinite_inc(); } } }
The nonreentrant macro on infinite_inc is not run.
nonreentrant
infinite_inc
The text was updated successfully, but these errors were encountered:
Support more ModuleItems in proc macro attribute expansion (#1556)
6ae5547
fix #1532
maciektr
Successfully merging a pull request may close this issue.
Reproduction:
The
nonreentrant
macro oninfinite_inc
is not run.The text was updated successfully, but these errors were encountered: