sismo-core/sismo-badges

Fix and create an helper to get deployments addresses

dhadrien opened this issue · 12 comments

https://github.com/sismo-core/sismo-protocol/blob/accountbound-improvements-and-airdrop-attester/tasks/deploy-tasks/full/0-deploy-core-and-hydra-s1-simple-and-accountbound.task.ts#L266

Issue with

   -> proxy: ${(await hre.deployments.all()).Front.address}
  • fix: add deployment prefix like this one:
(await hre.deployments.all())[options.deploymentNamePrefix + '_Front'].address
  • clean: create helper to be reused

👍

I thonk you should refactor the code

👍

👍

Z1GuR commented

👍

👍

👍

Good job

Class

Z1GuR commented

cool

great