-
Notifications
You must be signed in to change notification settings - Fork 215
Update joined crowdsales
What are we doing:
Fills array of all tiers addresses for any tier of crowdsale. For 1-tier contract with address x
it will be [x
].
When are we doing:
You need to do this, if joinedCrowdsales
array property of the tier contract is empty. If you have n
tiers, you should check this property at any tier.
-
Choose the network. For example,
(ETH) Etherscan.io
, if your contract is in mainnet.
- Attach to your crowdsale/tier contract: crowdsale/contract contract address and ABI are from the file downloaded at step 4 of ICO Wizard. CLick Access button.
- In Select a function combo choose
updateJoinedCrowdsalesMultiple
method
- In How would you like to access your wallet? choose any preferable option. If you chose
MetaMask/Mist
, click "Connect to Metamask".
-
Fill addrs input with the array of tiers addresses, that can be found in the file downloaded at step 4 of ICO Wizard.
-
Click Write.
-
Choose 0 in Amount to Send. The Gas Limit will be calculated automatically. Click "Generate transaction".
- You'll see the transaction data. Click Yes, I am sure. Make transaction..
- Confirm transaction in MetaMask popup.
-
Open MetaMask Chrome plugin
-
Connect to the network, where the crowdsale contract is deployed. For example,
mainnet
. -
Choose an account, which is the owner of crowdsale. This account should has sufficient balance in this network too.
-
Send transaction to the address of the crowdsale contract with the data =
0x04fc7c6d
+hex(number_of_tiers*32)
+number_of_tiers
+address_of_a_tier
.
where hex(number_of_tiers*32)
- hex(number_of_tiers*32), normalized to 32 bytes (required number of zeros before address). For example, if you have 1 tier number_of_tiers*32
= 1*32
= 32. hex(32)
= 20 and normalized to 32 bytes will be 0000000000000000000000000000000000000000000000000000000000000020
number_of_tiers
- number of tiers, normalized to 32 bytes (required number of zeros before address). For example, if you have 1-tier contract it should be 0000000000000000000000000000000000000000000000000000000000000001
;
address_of_a_tier
- address of a tier, normalized to 32 bytes (required number of zeros before address).
For example, if you have only 1-tier crowdsale contract with address 0x1c6d46dedd61ef982f0938e73975404b8de6d739
, the data should be: 0x04fc7c6d000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000010000000000000000000000001c6d46dedd61ef982f0938e73975404b8de6d739
. Amount to send should be 0.
- Introduction
- Demo
- Requirements
- Strategy
- How to run
- Using POA Networks
- Deployment Time & Gas
- Verifying Smart-Contracts
- Possible Tx Failures
- Token Wizard Projects
- Notable Contributors
- Support
- Disclaimer
- FAQ
- Change Start & End Times
- Change max cap for tier
- Change rate
- Distribute reserved tokens
- Finalize crowdsale