Error : could not borrow minter reference

Hello everyone, I need your help. I want to make NFTMinter resource available for every user account .i.e.
Account 0x02 holds the NFTMinter resource in its private path, so only this account can use it. In my use case, I want to allow this resource to be available to all users .i.e its reference should be on a public path.

I wrote this one line of code in the init method of the contract -<&NFTMinter>(/public/NFTMinter, target: /storage/NFTMinter)

but I’m still getting the same error -

“could not borrow minter reference.” whenever some other account tries to borrow this resource.

What can be done here? Please let me know. :slight_smile: