Ethereum Smart Contract to let users claim their tokens in an airdrop instead of distributing it via loops.
npm install
Setup a ganache
test blockchain with some accounts first by running:
ganache-cli --account="0xaf798b3f61aa3e6a9457451c50157c8fc0d23a028efa96e5ca9b7852e583063e, 1000000000000000000000000000000000" --account="0x274f7d97e228352b6443eb807cc91002be4172e0a67cbed3d5b423b3ed423404, 1000000000000000000000000000000000" --account="0x8266a38cdfcd3d515a28812425915d816065ff608a61ae58dbf973236f29a168, 1000000000000000000000000000000000" --account="0x6899abb846c0f4c26b4629b0276de8ab9e1995b273a78586cc00295f67c8fefd, 1000000000000000000000000000000000" --account="0xa5b3c2b92b40059a94efecef220149e1f060379c839dcb142254636e4dd09712, 1000000000000000000000000000000000" --account="0xdeae5c9e91b762a59fd5ac6057a8e38beb43c0d69fcb5b7b67eb246f6d24f545, 1000000000000000000000000000000000" --account="0x97cfb27e886cd82049e28dcc85f7f2f66bbc2ae74b0bd34c694f15377b5abc6e, 1000000000000000000000000000000000" --account="0xf5d53d89a289434f0f154e33964f83d8b64c329c96500b801a3c3c92df8fc8df, 1000000000000000000000000000000000" --account="0x1794601e531be71b458331f2542214a23541898a8ce2fc951c39712e92f183d7, 1000000000000000000000000000000000"
then:
truffle test