Hi there,
I am in need of help verifying a simple ERC20 contract deployed in remix. I have followed these tutorials:
And still have no solution.
Here is the error when compiling the flattened contract, with repo version specified...
Compiler debug log:
Error! Unable to generate Contract Bytecode and ABI
Found the following ContractName(s) in source code : Context, ECDSA, EIP712, ERC20, ERC20Burnable, ERC20Permit, IERC1155Errors, IERC20, IERC20Errors, IERC20Metadata, IERC20Permit, IERC5267, IERC721Errors, Math, MessageHashUtils, MyToken, Nonces, Ownable, ShortStrings, SignedMath, StorageSlot, Strings
But we were unable to locate a matching bytecode (err_code_2)
For troubleshooting, you can try compiling your source code with the Remix - Solidity IDE and check for exceptions
Compiler Version: v0.8.20+commit.a1b79de6
Optimization Enabled: True
Runs: 200
Bytecode (what we are looking for):
61016060405<<<shortened>>>
- 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) ECDSA
60556032600b8282823980515f1a607314602657634e487b7160e01b5f525f60045260245ffd5b305f526<<<shortened>>>
2) Math
60556032600b8282823980515f1a607314602657634e487b7160e01b5f525f60045260245ffd5b305f52607381538281<<<shortened>>>
3) MessageHashUtils
60556032600b8282823980515f1a607314602657634e487b7160e01b5f525f60045260245ffd5b305f52607381538281f3fe730000000000000000000000000000000000000<<<shortened>>>
4) MyToken
61016060405234801562000011575f80fd5b50604051620015d6380380620015d6833981016040819052620000349162000292565b6040518060400160405280600781526020016626bcaa37b5b2b760c91b81525080604051806040016040528060018152602001603160f81b815250836040518060400160405280600781526020016626bcaa37b5b2b760c91b815250604051806040016040528060038152602001624d544b60e81b8152508160039081620000bd919062000361565b506004620000cc828262000361565b5050506001<<<shortened>>>
5) ShortStrings
60556032600b8282823980515f1a607314602657634e487b7160e01b5f525f60045260245ffd5b305f52607381538281<<<shortened>>>
6) SignedMath
60556032600b8282823980515f1a607314602657634e487b<<<shortened>>>
7) StorageSlot
60556032600b8282823980515f1a607314602657634e487b7<<<shortened>>>
8) Strings
60556032600b8282823980515f1a607314602657634e487b7160e01b5f525f60045260245ffd5b305f5260738153<<<shortened>>>
This is on the sepolia test network.
The contract address is:
0x2b9f6d02228b572e33b2A4cda06dcdC49e527d37
and the constructor arguments are:
00000000000000000000000001e0a771dc549744685d41f48ba590230240ada2
I did not use optimization.
I want to understand where I went wrong and how to correct it.
I have tried the tool in Remix to no success.