Hi @pkr,
As per Verify with OpenZeppelin SDK due to an Issue compile explicitly with the optimizer off.
Compile (with optimizer off)
$ oz compile --optimizer off
✓ Compiled contracts with solc 0.5.12 (commit.7709ece9)
Create
I didn’t bother to call initialize
for the purposes of this example
$ oz create
Nothing to compile, all contracts are up to date.
? Pick a contract to instantiate AST20
? Pick a network rinkeby
- Variables _minters (MinterRole), _pausers (PauserRole) contain a struct or enum. These are not automatically checked for storage compatibility in the current version. See https://docs.openzeppelin.com/sdk/2.5/writing_contracts.html#modifying-your-contracts for more info.
✓ Contract AST20 deployed
All contracts have been deployed
? Do you want to call a function on the instance after creating it? No
Possible initialization method (initialize) found in contract. Make sure you initialize your instance.
✓ Instance created at 0x36bc96eA75667c26cBF0AC7c84208A85f42357fC
0x36bc96eA75667c26cBF0AC7c84208A85f42357fC
Verify
$ oz verify
? Pick a contract AST20
? Pick a network rinkeby
? Was the optimizer enabled when you compiled your contracts? No
? Select an endpoint etherscan
? Provide an etherscan API KEY ZZZZZMYAPIKEYZZZZZ
✓ Contract source code of AST20 verified and published successfully. You can check it here: https://rinkeby.etherscan.io/address/0x6b5003B6cF30CbD8345aa09586114140399F1792#code
Verified Logic Contract
https://rinkeby.etherscan.io/address/0x6b5003B6cF30CbD8345aa09586114140399F1792#code