I am using "hardhat-deploy" npm package to deploy the smart contracts.
Inside the deploy script, I am trying to call a function like so:
**await trueYield.connect(player).stakeEther(30, data)**
The contract deploys fine but then it gives error:
TypeError: staking.connect is not a function
How can I connect to a different account than "deployer" and call a function on the contract?