Question? i'm trying to call the claimrewards function in the unstake function in a staking smart contract, but when compiling, it is throwing an error saying undeclared identifier. "claimrewards()" is not (or not yet) visible at this point how is that error solved?
Question? i'm trying to call the claimrewards function in the unstake function in a staking smart contract, but when compiling, it is throwing an error saying
undeclared identifier. "claimrewards()" is not (or not yet) visible at this point
how is that error solved?