Skip to content

Token Wizard Verifying Contracts

Victor Baranov edited this page Apr 23, 2018 · 2 revisions

Important!: All information required for verification of Token Wizard contracts are located in a zip file. You must download it on Step 4 of Token Wizard. There is no way to get it later and you'll need to repeat wizard for the new set of contracts to get the file.

Video instruction

Video from Stephen how to verify smart contracts created by Token Wizard:

Video instruction

ABI Bytecode not matching deployed contract

Sorry! The Compiled ByteCode for 'ContractName' does NOT match the Contract Creation Code for 'ContractAddress'.
Unable to Verify Contract Source Code.

If this is happening to you while trying to verify your contracts, please follow the video below to use the bytecode stored on the blockchain.

ABI Bytecode not a match video

Explanation

Below is an example of the .zip file contents downloaded in Step 4

Token Wizard Contracts File Structure from Final Step

There are two files for each Contract in the ZIP file that has been submitted to the network you were connected to at the time.

  • File ending with .sol is the "Solidity Contract Code" file, select all contents and paste in corresponding field on Etherscan.

  • The .txt file contains the "Contract Address", "Contract Name", and the "Constructor Arguments ABI-encoded" needed to fill the rest of the fields while verifying.

  • You also need the SafeMathLibExt Library_1 Name: field filled in with the correct Contract Address from your zip file. The only contract that doesn't need the Library Name is "SafeMathLibExt" itself, the rest will need the Math operations this contract provides.

See below for screenshots of an example contract submission for each.


Please note that these contract names MAY be different if you have additional features added, such as whitelist enabled, reserved tokens or multiple tiers. Always verify with your own files.

Default Contract Name: SafeMathLibExt Token Wizard Verifying Contracts; SafeMathLibExt

Default Contract Name: CrowdsaleTokenExt Token Wizard Verifying Contracts; CrowdsaleTokenExt

Default Contract Name: FlatPricingExt Token Wizard Verifying Contracts; FlatPricingExt

Default Contract Name: MintedTokenCappedCrowdsaleExt Token Wizard Verifying Contracts; MintedTokenCappedCrowdsaleExt

Default Contract Name: ReservedTokensFinalizeAgent Token Wizard Verifying Contracts; ReservedTokensFinalizeAgent

These contracts were made from the most basic crowdsale option available from Token Wizard. It has a single tier, no whitelist, no reserved tokens and non modifiable.

Clone this wiki locally