Closed miki-saarna closed 7 months ago
Hi @miki-saarna , thanks for your pr!
Vender deploy lines may appear to some users as the following lines of code:
But for some users including me it's clear that deploy lines goes after // // Deploy Vendor
until next comment section // // Transfer tokens to Vendor
. So for that group of people additional layer of comments will look very strange. So I think we don't need to add this change
To be very clear I think we can do something like
// ===== Deploy section =====
....
// ===== End of deploy section ====
// ===== Next section =====
....
But I think we don't need it for now
@rin-st understood! Right, I think for the majority of users, it's clear enough on which lines to uncomment. And I think adding End of <section-name>
is probably a bit excessive for the time-being.
Within
Checkpoint 2: ⚖️ Vendor 🤖
, the instructionEdit packages/hardhat/deploy/01_deploy_vendor.js to deploy the Vendor (uncomment Vendor deploy lines).
can cause ambiguity on which exact lines to uncomment.Vender deploy lines
may appear to some users as the following lines of code:If a user uncomments this entire section, the following 2 lines are also uncommented, although they should remain commented until later within the instructions:
await yourToken.transfer(vendorAddress, hre.ethers.parseEther("1000"));
await vendor.transferOwnership("**YOUR FRONTEND ADDRESS**");
Therefore, the above 2 lines should have an additional layer of comments so that each line is properly uncommented when the user gets to the appropriate instruction:
Then, edit deploy/01_deploy_vendor.js to transfer 1000 tokens to vendor address.
In deploy/01_deploy_vendor.js you will need to call transferOwnership() on the Vendor to make your frontend address the owner: