jing
February 16, 2021, 6:43am
1
cannot verify a contract that I am trying to copy for a crowdsale. I keep getting an error in constructor arguments.
Environment
Remix, truffle, BSC
Details
I can compile the contract and deploy it but I go to verify and I get the same error.
Code to reproduce
1. Deploy over remix the following contract:
// SPDX-License-Identifier: MIT
/*
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
This file has been truncated. show original
2. Fill in these values for parameters when deploying:
tokenwallet: 0x36C0838be513130433579F4F9F73F4e20E0e1F61
usdwei: 7633587786259542
WALLET: 0x9b17c15179771ecddDe79216d0d6993fC45c7332
token: 0xb2824f97F002a9c176C232eF3E8A130391a7F912
tokensaleprice: 90
3. try to paste code into remix to verify
(my contract is deployed here for reference: 0x8B2b041Ae0bE0941d10267FCed2af0380443AA28)
1 Like
Skyge
February 16, 2021, 12:07pm
2
3. try to paste code into remix to verify
(my contract is deployed here for reference: 0x8B2b041Ae0bE0941d10267FCed2af0380443AA28)
Is this a contract address? 0x8B2b041Ae0bE0941d10267FCed2af0380443AA28
BTW, maybe your constructor parameter is 00000000000000000000000036c0838be513130433579f4f9f73f4e20e0e1f61000000000000000000000000000000000000000000000000001b1eb5285c9c560000000000000000000000009b17c15179771ecddde79216d0d6993fc45c7332000000000000000000000000b2824f97f002a9c176c232ef3e8a130391a7f912000000000000000000000000000000000000000000000000000000000000005a
1 Like
jing
February 16, 2021, 5:33pm
3
1 Like
Skyge
February 16, 2021, 11:02pm
4
Ohhhh, it is on the testnet, done!
1 Like