I'm using openZeppelin to make a crowdsale contract, all (30 of them) my tests pass with flying colours ;) and I can migrate on a locall ganache blockchain no problem.
rinkeby: { provider: rinkeybyProvider, network_id: 3, gas: 4712388, gasPrice: web3.utils.toWei("40", "gwei"), websockets: true, from: "0x9793371e69ed67284a1xxxx" }
When I deploy on rinkeby I get:
"SplitWallet" hit a require or revert statement somewhere in its constructor. Try: * Verifying that your constructor params satisfy all require conditions. * Adding reason strings to your require statements.
I have gone through and put messages in every revert in the constructor hierachy, but I never see any of the messages. I thought it might be that my payees and shares were different lengths but, no, they are the same (only parameters that the constructor for a splitwallet take)
Things to note:
truffle-wallet-provider
provider, with just a private key (no mnemonic) to deploy module.exports = async ( deployer, network, [owner, purchaser, investor, organisation, ...accounts] //how does it know these?? )
This last point, makes me wonder, because I printed out owner/purchaser and they dont match my public key wallet at all, so I have no idea where they are coming from. And if they dont match, and it defaults to the owner being accounts[0], then that wallet may not be able to pay for the gas.... perhaps??
Thanks
Rinkeby的网络ID是4,而不是3。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.