Lesson 13: Unit test_stake_token query #1342
-
Hi everyone, loving the course, and almost at the homestretch :) i dont have an error, but just had a query, when we run the test_stake_token unit test, since this is a local test environment where the accounts are spun up when the test are being run, how is there already dapp tokens that exist in the account that can be staked? maybe there's something i'm not seeing, do we already allocate a certain amount of Dapptokens to the account?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
owh, i think i already figured it out. when we deploy the dapptoken contract, the total amount of dapptoken minted is minted to the account that deploys the contract. Since we do not transfer the whole supply of tokens to tokenfarm, there is still an available amount of tokens in our account to be staked i think that is the answer but feel free to correct me if i am wrong, Cheers!! |
Beta Was this translation helpful? Give feedback.
owh, i think i already figured it out. when we deploy the dapptoken contract, the total amount of dapptoken minted is minted to the account that deploys the contract. Since we do not transfer the whole supply of tokens to tokenfarm, there is still an available amount of tokens in our account to be staked
i think that is the answer but feel free to correct me if i am wrong,
Cheers!!