Hi,
I used the wizard to create a erc20 contract with
features: mintable, burnable, pausable, permit
access control: roles
upgradeability: uups
The contract was compiled and deployed successfully through remix as
proxy address: 0x61e24Ce4efe61EB2efd6AC804445df65f8032955
implementation address: 0xadE5f7f7a3f8DB0A9256567e55fF793e3c9bBF14
default admin: 0x7Ec4b6B2525d9aa8287456eB5cfbc5377402A9c7
pauser: 0x7Ec4b6B2525d9aa8287456eB5cfbc5377402A9c7
minter: 0x7Ec4b6B2525d9aa8287456eB5cfbc5377402A9c7
upgrader: 0x7Ec4b6B2525d9aa8287456eB5cfbc5377402A9c7
Then I used the remix plugin to verify the contracts but seems like only the implementation contracts has fully verified similar to
I tried to verify the proxy contract with flatten ERC1967Proxy.sol with ABI encoded constructor arguments
000000000000000000000000ade5f7f7a3f8db0a9256567e55ff793e3c9bbf1400000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000084f8c8765e0000000000000000000000007ec4b6b2525d9aa8287456eb5cfbc5377402a9c70000000000000000000000007ec4b6b2525d9aa8287456eb5cfbc5377402a9c70000000000000000000000007ec4b6b2525d9aa8287456eb5cfbc5377402a9c70000000000000000000000007ec4b6b2525d9aa8287456eb5cfbc5377402a9c700000000000000000000000000000000000000000000000000000000
provided by etherscan but still got error with following outputs from etherscan:
- Found the following ContractName(s) in source code : Address, ERC1967Proxy, ERC1967Utils, IBeacon, Proxy, StorageSlot
- But we were unable to locate a matching bytecode (err_code_2)
Bytecode
60806040526040516106e53803806106e583398181016040528101906100259190610512565b610035828261003c60201b60201c565b50506105f6565b61004b826100c160201b60201c565b8173ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a26000815111156100ae576100a8828261019460201b60201c565b506100bd565b6100bc61021e60201b60201c565b5b5050565b60008173ffffffffffffffffffffffffffffffffffffffff163b0361011d57806040517f4c9c8ce3000000000000000000000000000000000000000000000000000000008152600401610114919061057d565b60405180910390fd5b806101507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b61025b60201b60201c565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60606000808473ffffffffffffffffffffffffffffffffffffffff16846040516101be91906105df565b600060405180830381855af49150503d80600081146101f9576040519150601f19603f3d011682016040523d82523d6000602084013e6101fe565b606091505b509150915061021485838361026560201b60201c565b9250505092915050565b6000341115610259576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b6000819050919050565b6060826102805761027b826102fa60201b60201c565b6102f2565b600082511480156102a8575060008473ffffffffffffffffffffffffffffffffffffffff163b145b156102ea57836040517f9996b3150000000000000000000000000000000000000000000000000000000081526004016102e1919061057d565b60405180910390fd5b8190506102f3565b5b9392505050565b60008151111561030d5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061037e82610353565b9050919050565b61038e81610373565b811461039957600080fd5b50565b6000815190506103ab81610385565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610404826103bb565b810181811067ffffffffffffffff82111715610423576104226103cc565b5b80604052505050565b600061043661033f565b905061044282826103fb565b919050565b600067ffffffffffffffff821115610462576104616103cc565b5b61046b826103bb565b9050602081019050919050565b60005b8381101561049657808201518184015260208101905061047b565b60008484015250505050565b60006104b56104b084610447565b61042c565b9050828152602081018484840111156104d1576104d06103b6565b5b6104dc848285610478565b509392505050565b600082601f8301126104f9576104f86103b1565b5b81516105098482602086016104a2565b91505092915050565b6000806040838503121561052957610528610349565b5b60006105378582860161039c565b925050602083015167ffffffffffffffff8111156105585761055761034e565b5b610564858286016104e4565b9150509250929050565b61057781610373565b82525050565b6000602082019050610592600083018461056e565b92915050565b600081519050919050565b600081905092915050565b60006105b982610598565b6105c381856105a3565b93506105d3818560208601610478565b80840191505092915050565b60006105eb82846105ae565b915081905092915050565b60e1806106046000396000f3fe6080604052600a600c565b005b60186014601a565b6027565b565b60006022604c565b905090565b3660008037600080366000845af43d6000803e80600081146047573d6000f35b3d6000fd5b600060787f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b60a1565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600081905091905056fea264697066735822122041a27953478306ba8612ebf56791d0be3be840199c19e335afbff17eadfc84ef64736f6c63430008150033000000000000000000000000ade5f7f7a3f8db0a9256567e55ff793e3c9bbf1400000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000084f8c8765e0000000000000000000000007ec4b6b2525d9aa8287456eb5cfbc5377402a9c70000000000000000000000007ec4b6b2525d9aa8287456eb5cfbc5377402a9c70000000000000000000000007ec4b6b2525d9aa8287456eb5cfbc5377402a9c70000000000000000000000007ec4b6b2525d9aa8287456eb5cfbc5377402a9c700000000000000000000000000000000000000000000000000000000
- vs what we got -
We tried looking for a match from the list of compiled contract bytecode outputs (as listed below), but was unable to find an exact match.
1) Address
6055604b600b8282823980515f1a607314603f577f4e487b71000000000000000000000000000000000000000000000000000000005f525f60045260245ffd5b305f52607381538281f3fe730000000000000000000000000000000000000000301460806040525f80fdfe{ipfs}64736f6c63430008140033000000000000000000000000ade5f7f7a3f8db0a9256567e55ff793e3c9bbf1400000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000084f8c8765e0000000000000000000000007ec4b6b2525d9aa8287456eb5cfbc5377402a9c70000000000000000000000007ec4b6b2525d9aa8287456eb5cfbc5377402a9c70000000000000000000000007ec4b6b2525d9aa8287456eb5cfbc5377402a9c70000000000000000000000007ec4b6b2525d9aa8287456eb5cfbc5377402a9c700000000000000000000000000000000000000000000000000000000
2) ERC1967Proxy
60806040526040516106ae3803806106ae833981810160405281019061002591906104f2565b610035828261003c60201b60201c565b50506105ce565b61004b826100c060201b60201c565b8173ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a25f815111156100ad576100a7828261018f60201b60201c565b506100bc565b6100bb61021560201b60201c565b5b5050565b5f8173ffffffffffffffffffffffffffffffffffffffff163b0361011b57806040517f4c9c8ce3000000000000000000000000000000000000000000000000000000008152600401610112919061055b565b60405180910390fd5b8061014d7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5f1b61025160201b60201c565b5f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60605f808473ffffffffffffffffffffffffffffffffffffffff16846040516101b891906105b8565b5f60405180830381855af49150503d805f81146101f0576040519150601f19603f3d011682016040523d82523d5f602084013e6101f5565b606091505b509150915061020b85838361025a60201b60201c565b9250505092915050565b5f34111561024f576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b5f819050919050565b60608261027557610270826102ed60201b60201c565b6102e5565b5f825114801561029b57505f8473ffffffffffffffffffffffffffffffffffffffff163b145b156102dd57836040517f9996b3150000000000000000000000000000000000000000000000000000000081526004016102d4919061055b565b60405180910390fd5b8190506102e6565b5b9392505050565b5f815111156102ff5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f604051905090565b5f80fd5b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61036b82610342565b9050919050565b61037b81610361565b8114610385575f80fd5b50565b5f8151905061039681610372565b92915050565b5f80fd5b5f80fd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6103ea826103a4565b810181811067ffffffffffffffff82111715610409576104086103b4565b5b80604052505050565b5f61041b610331565b905061042782826103e1565b919050565b5f67ffffffffffffffff821115610446576104456103b4565b5b61044f826103a4565b9050602081019050919050565b5f5b8381101561047957808201518184015260208101905061045e565b5f8484015250505050565b5f6104966104918461042c565b610412565b9050828152602081018484840111156104b2576104b16103a0565b5b6104bd84828561045c565b509392505050565b5f82601f8301126104d9576104d861039c565b5b81516104e9848260208601610484565b91505092915050565b5f80604083850312156105085761050761033a565b5b5f61051585828601610388565b925050602083015167ffffffffffffffff8111156105365761053561033e565b5b610542858286016104c5565b9150509250929050565b61055581610361565b82525050565b5f60208201905061056e5f83018461054c565b92915050565b5f81519050919050565b5f81905092915050565b5f61059282610574565b61059c818561057e565b93506105ac81856020860161045c565b80840191505092915050565b5f6105c38284610588565b915081905092915050565b60d4806105da5f395ff3fe6080604052600a600c565b005b60186014601a565b6026565b565b5f60216044565b905090565b365f80375f80365f845af43d5f803e805f81146040573d5ff35b3d5ffd5b5f606e7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5f1b6095565b5f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b5f81905091905056fe{ipfs}64736f6c63430008140033000000000000000000000000ade5f7f7a3f8db0a9256567e55ff793e3c9bbf1400000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000084f8c8765e0000000000000000000000007ec4b6b2525d9aa8287456eb5cfbc5377402a9c70000000000000000000000007ec4b6b2525d9aa8287456eb5cfbc5377402a9c70000000000000000000000007ec4b6b2525d9aa8287456eb5cfbc5377402a9c70000000000000000000000007ec4b6b2525d9aa8287456eb5cfbc5377402a9c700000000000000000000000000000000000000000000000000000000
3) ERC1967Utils
6055604b600b8282823980515f1a607314603f577f4e487b71000000000000000000000000000000000000000000000000000000005f525f60045260245ffd5b305f52607381538281f3fe730000000000000000000000000000000000000000301460806040525f80fdfe{ipfs}64736f6c63430008140033000000000000000000000000ade5f7f7a3f8db0a9256567e55ff793e3c9bbf1400000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000084f8c8765e0000000000000000000000007ec4b6b2525d9aa8287456eb5cfbc5377402a9c70000000000000000000000007ec4b6b2525d9aa8287456eb5cfbc5377402a9c70000000000000000000000007ec4b6b2525d9aa8287456eb5cfbc5377402a9c70000000000000000000000007ec4b6b2525d9aa8287456eb5cfbc5377402a9c700000000000000000000000000000000000000000000000000000000
4) StorageSlot
6055604b600b8282823980515f1a607314603f577f4e487b71000000000000000000000000000000000000000000000000000000005f525f60045260245ffd5b305f52607381538281f3fe730000000000000000000000000000000000000000301460806040525f80fdfe{ipfs}64736f6c63430008140033000000000000000000000000ade5f7f7a3f8db0a9256567e55ff793e3c9bbf1400000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000084f8c8765e0000000000000000000000007ec4b6b2525d9aa8287456eb5cfbc5377402a9c70000000000000000000000007ec4b6b2525d9aa8287456eb5cfbc5377402a9c70000000000000000000000007ec4b6b2525d9aa8287456eb5cfbc5377402a9c70000000000000000000000007ec4b6b2525d9aa8287456eb5cfbc5377402a9c700000000000000000000000000000000000000000000000000000000
What should I do to make it fully verified? Thanks.