feat: finish challenge
Some checks failed
Lint / ci (lts/*, ubuntu-latest) (push) Has been cancelled

This commit is contained in:
han
2026-01-21 11:14:11 +07:00
parent fd53a8187a
commit 6702feefe4
14 changed files with 2250 additions and 36 deletions

View File

@@ -27,14 +27,14 @@ const deployVendor: DeployFunction = async function (hre: HardhatRuntimeEnvironm
* Student TODO:
* - Put the address youre using in the frontend here (leave "" to default to the deployer)
*/
const FRONTEND_ADDRESS: string = "";
const FRONTEND_ADDRESS: string = "0x253F67DF832aBADb8A54aAA9b4A2635fbeDa4Ccf";
/**
* Mode switch:
* - If true: deploy Vendor and seed it with the token balance
* - If false: send tokens to your frontend address (or deployer if unset)
*/
const SEND_TOKENS_TO_VENDOR = false; // Don't switch until Checkpoint 2!
const SEND_TOKENS_TO_VENDOR = true; // Don't switch until Checkpoint 2!
const recipientAddress = FRONTEND_ADDRESS && FRONTEND_ADDRESS.trim().length > 0 ? FRONTEND_ADDRESS : deployer;