Closed digvjs closed 5 years ago
Thanks @DigvijaySS for raising this. Can you please let us know how you have deployed the contract, i mean using remix or other ways?
I am deploying this using ether.js deploy function.
On Sun, Apr 21, 2019, 2:07 AM Aniket notifications@github.com wrote:
Thanks @DigvijaySS https://github.com/DigvijaySS for raising this. Can you please let us know how you have deployed the contract, i mean using remix or other ways?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Aniket-Engg/sol-verifier/issues/28#issuecomment-485167047, or mute the thread https://github.com/notifications/unsubscribe-auth/AIAQVBI47JLAPMP653XVOOTPRN5JJANCNFSM4HHCXWJA .
Have you tried any other way of deployment? Also please double check your constructor parameters. I am trying to reproduce it at my end.
@DigvijaySS We have tried all the ways to reproduce it but couldn't. I have deployed contract using ethers.js and successfully verified it using this package passing constructor parameters(string type too). Sample: https://rinkeby.etherscan.io/address/0x33BA5305dFA61421e3BFF3F670005B32841AF9aF#code
Still if you would like to share the related code or other information where you think something may be wrong, we will be happy to help you.
Looks like something wrong around the datatype.
I was deploying contract with ether.js code -
var tokensToDeploy = math.multiply(numOfTokens, math.pow(10, contractDecimals));
let contract = await factory.deploy(tokenSymbol, projectName, tokensToDeploy);
This failed! To make it work, I had to change the tokensToDeploy
to something as below -
var tokensToDeploy = parseInt(math.multiply(numOfTokens, math.pow(10, contractDecimals)));
Now this works while verification.
Thanks!
Great! Closing it.
Current sol-verify version: v1.2.0 Current solidity version: ^0.4.18;
Payload:
Output:
I am using contract named constructor instead of keyword.