Hi, I'm new to this and I'm wondering: we have this parameter "address payable wallet" when deploying the ICO contract, but can we change the address during ICO?
Example: when deployed ICO contract, the address of wallet fund is 0x1, then I want to change it to the address 0x2?
contract MyCrowdsale is Crowdsale, CappedCrowdsale, TimedCrowdsale {
constructor(
uint256 rate, // rate, in TKNbits
address payable wallet, // wallet to receive funds
IERC20 token, // the token
uint256 cap, // total cap, in wei
uint256 openingTime, // opening time in unix epoch seconds
uint256 closingTime // closing time in unix epoch seconds
)
CappedCrowdsale(cap)
TimedCrowdsale(openingTime, closingTime)
Crowdsale(rate, wallet, token)
public
{
// nice, we just created a crowdsale that's only open
// for a certain amount of time
// and stops accepting contributions once it reaches `cap`
}
}
Thanks for supporting me.