Skip to content

Commit

Permalink
comment out some unnessary script code
Browse files Browse the repository at this point in the history
  • Loading branch information
thurendous committed Oct 3, 2024
1 parent 508549f commit 97bfdec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions script/DeployContracts.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,13 @@ contract DeployContracts is Script {
votingPowerExchange.grantRole(votingPowerExchange.EXCHANGER_ROLE(), defender);

// give exchanger some utility token
utilityToken.mint(exchanger, 10_000 * 1e18);
// utilityToken.mint(exchanger, 10_000 * 1e18);
// exchanger should approve the votingPowerExchange to spend the utility token
// here exchanger is deployer so we do this directly
// change this method when exchanger is not deployer
utilityToken.approve(address(votingPowerExchange), 10_000 * 1e18);
// utilityToken.approve(address(votingPowerExchange), 10_000 * 1e18);
// TODO: should let the outside exchanger to approve the exchange token.
// TODO: And the exchanger address should hold some utility token for calling exchange function.
vm.stopBroadcast();

return DeploymentResult({
Expand Down

0 comments on commit 97bfdec

Please sign in to comment.