Having issues verifying my token contract on etherscan.io.
Receiving the following errors:
Note: Contract was created during Txn#
Result: Does not match the input creation bytecode found at this address
Error! Unable to generate Contract ByteCode and ABI
For some reason, the end of my Input Data does not give me a working Bytecode to use where others do.
Here’s the transaction which made the contract:
0x776159bbc0f6e624e92a812ee98c1674e67a2ea3
Compiler Warning(s):
myc:1:1: ParserError: Expected pragma, import directive or contract/interface/library definition.
[
^
Any help is appreciated, I’ve been stuck at this point for some days, and completely clueless.
Cheers!
pragma solidity ^0.4.0;
contract Ballot {
struct Voter {
uint weight;
bool voted;
uint8 vote;
address delegate;
}
struct Proposal {
uint voteCount;
}
address chairperson;
mapping(address => Voter) voters;
Proposal[] proposals;
/// Create a new ballot with $(_numProposals) different proposals.
function Ballot(uint8 _numProposals) public {
chairperson = msg.sender;
voters[chairperson].weight = 1;
proposals.length = _numProposals;
}
/// Give $(toVoter) the right to vote on this ballot.
/// May only be called by $(chairperson).
function giveRightToVote(address toVoter) public {
if (msg.sender != chairperson || voters[toVoter].voted) return;
voters[toVoter].weight = 1;
}
/// Delegate your vote to the voter $(to).
function delegate(address to) public {
Voter storage sender = voters[msg.sender]; // assigns reference
if (sender.voted) return;
while (voters[to].delegate != address(0) && voters[to].delegate != msg.sender)
to = voters[to].delegate;
if (to == msg.sender) return;
sender.voted = true;
sender.delegate = to;
Voter storage delegateTo = voters[to];
if (delegateTo.voted)
proposals[delegateTo.vote].voteCount += sender.weight;
else
delegateTo.weight += sender.weight;
}
/// Give a single vote to proposal $(toProposal).
function vote(uint8 toProposal) public {
Voter storage sender = voters[msg.sender];
if (sender.voted || toProposal >= proposals.length) return;
sender.voted = true;
sender.vote = toProposal;
proposals[toProposal].voteCount += sender.weight;
}
function winningProposal() public constant returns (uint8 _winningProposal) {
uint256 winningVoteCount = 0;
for (uint8 prop = 0; prop < proposals.length; prop++)
if (proposals[prop].voteCount > winningVoteCount) {
winningVoteCount = proposals[prop].voteCount;
_winningProposal = prop;
}
}
}
asked Mar 7, 2018 at 15:02
Adding to @Harshad answer.
These are things you should check:
(1) Compiler version as @Harshad saying.
(2) Optimization is enabled or not. If you are using remix, then you will find in compile section.
(3) If you are using any libraries (which it does not seems you are, from your code. But just to double confirm), then you should input those libraries as well.
(4) Lastly, the solidity code must be exact code which you used to compile
Good luck!
answered Nov 9, 2018 at 6:52
Try this.
Check your compiler version at «verify and publish» step, if it is the correct compiler version.
You can check it by running :
truffle version
Source
In my case the output [version] was :
Truffle v4.1.8 (core: 4.1.8)
Solidity v0.4.23 (solc-js)
So the compiler version I selected from the list was :
v0.4.23+commit.124ca40d
If you don’t have truffle or unaware of it, you can refer this link.
Hope this helps someone!
answered May 21, 2018 at 8:49
itsHarshaditsHarshad
4813 silver badges8 bronze badges
Please look at the Contract-name.json in build/contracts folder and find pragma solidity in the file content. That shows you the correct compile version.
If you get the compile version, please check if the publish page’s compile version is equal to that.
Sincerely hope this would be helpful to you.
answered Jun 11, 2021 at 15:55
David YuDavid Yu
911 silver badge4 bronze badges
Every time I’m trying to deploy my token contract on the test net, I’m facing this error:
Compiler debug log: Error! Unable to generate Contract ByteCode and
ABI Found the following ContractName(s) in source code: SafeMath,
Token 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
This is the image of error
This is my code:
//SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.7;
library SafeMath {
function Add(uint a, uint b) public pure returns (uint c) {
c = a + b;
require(c >= a);
}
function Sub(uint a, uint b) public pure returns (uint c) {
require(b <= a);
c = a - b;
}
function Mul(uint a, uint b) public pure returns (uint c) {
c = a * b;
require(a == 0 || c / a == b);
}
function Div(uint a, uint b) public pure returns (uint c) {
require(b > 0);
c = a / b;
}
}
contract Token{
using SafeMath for uint256;
string public name = 'MY TOKEN';
string public symbol = 'MTK';
uint256 public decimals = 18 ;
uint256 public totalsupply = 10000000000000000000000 ;
address owner;
//5% will go to owner and 5% of transaction will burn
uint taxfee = 5;
uint burnfee = 5;
bool public istransferable = false;
//bool public ExcludedFromReward = false;
//exclude addresses from deflation
mapping(address=>bool) public ExcludedFromFee;
//mapping(address=>bool) public ExcludedFromReward;
mapping(address => uint256) public balance;
mapping(address => mapping(address => uint256)) allowance;
mapping (address => bool) public _Blacklisted;
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
event OwnershipTransfer(address indexed previousOwner, address indexed newOwner);
constructor(){//(string memory Name, string memory Symbol, uint Decimals, uint TotalSupply) {
// name = Name;
// symbol = Symbol;
// decimals = Decimals;
// totalsupply = TotalSupply;
owner = msg.sender;
balance[owner] = totalsupply;//TotalSupply;
ExcludedFromFee[owner] = true;
_rOwned[msg.sender] = _rTotal;
}
function Balance() public view returns(uint256) {
return balance[owner];
}
Cannot verify contract deployed with abi #22544
Comments
GooGrand commented Mar 22, 2021
System
OS & Version: Linux
Expected behaviour
Contracts deployed with sol code and with golang abi will have the same bytecode.
Actual behaviour
I found trouble with verifying contract. The error is «Error! Unable to generate Contract ByteCode and ABI». The bytecodes are different so contract cannot be verified.
Steps to reproduce the behaviour
- Make solidity code
- Create an abi for it with abigen tool
- Deploy contract on BSC
- Try to verify contract with solidity code
The text was updated successfully, but these errors were encountered:
MariusVanDerWijden commented Mar 22, 2021
I don’t think this is an issue with abigen. If you specify the bytecode to abigen, it will not generate something different. The bytecode in the go binding is the deployed bytecode + the deployment code, maybe that is your problem?
Can you please provide some more details, so we can reproduce it (command line arguments, example contract, . )
no-response bot commented Apr 23, 2021
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don’t have enough information to take action. Please reach out if you have more relevant information or answers to our questions so that we can investigate further.
wantedpixelmaza commented May 24, 2021
I don’t think this is an issue with abigen. If you specify the bytecode to abigen, it will not generate something different. The bytecode in the go binding is the deployed bytecode + the deployment code, maybe that is your problem?
Can you please provide some more details, so we can reproduce it (command line arguments, example contract, . )
Compiler debug log:
Error! Unable to generate Contract ByteCode and ABI
Found the following ContractName(s) in source code : ERC20Interface, Pussy, SafeMath
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 exception
Tech4Money commented Jun 9, 2021
I deployed and then forgot to verify the same day. Had a eroro with my txt file and now am unable to verify getting this error. 0x9a877792c4c9fb2278ec4e11289217a9a4567378
Compiler debug log:
Error! Unable to generate Contract ByteCode and ABI
Found the following ContractName(s) in source code : Address, Context, IERC20, IUniswapV2Factory, IUniswapV2Pair, IUniswapV2Router01, IUniswapV2Router02, Ownable, SRG, SafeMath
But we were unable to locate a matching bytecode (err_code_2)
Tech4Money commented Jun 9, 2021
I don’t think this is an issue with abigen. If you specify the bytecode to abigen, it will not generate something different. The bytecode in the go binding is the deployed bytecode + the deployment code, maybe that is your problem?
Can you please provide some more details, so we can reproduce it (command line arguments, example contract, . )
Hi are you able to help me?
Hon3stP3rson commented Jan 20, 2022
hello. i have the same issue
ghost commented May 7, 2022
we have the same error code
Error! Unable to generate Contract ByteCode and ABI
But we were unable to locate a matching bytecode (err_code_2)
Источник
Created a token and I get an error when trying to verify: Error! Unable to generate Contract ByteCode and ABI #1248
Comments
zueljin commented Apr 30, 2021
Hello, I used a youtube tutorial to create a token on the Binance smart chain and have been distributing it to my community for rewards and role designation in discord. I want to get it verified so that I can add add an image to it through bscscan but I’m getting an error:
Error! Unable to generate Contract ByteCode and ABI
Found the following ContractName(s) in source code : Token
But we were unable to locate a matching bytecode (err_code_2)
I’ve never coded anything before this in my life before this and have very little knowledge about what anything means in the code. It compiles correctly on Remix 0.8.2 but will not verify. I’ve also tried optimization enabled and disabled with the same result. I’ll paste it below for your review. I heard flattening it may resolve it but I couldn’t figure out how to use truffle-flattener. Any help is appreciated
pragma solidity ^0.8.2;
contract Token <
mapping(address => uint) public balances;
mapping(address => mapping(address => uint)) public allowance;
uint public totalSupply = 10000000 * 10 ** 18;
string public name = «Zuelyen»;
string public symbol = «ZYN»;
uint public decimals = 18;
The text was updated successfully, but these errors were encountered:
Источник
[Solved] Error! Unable to generate Contract ByteCode and ABI (General Exception, unable to get compiled [bytecode])
spectro
Guest
spectro Asks: Error! Unable to generate Contract ByteCode and ABI (General Exception, unable to get compiled [bytecode])
I have tried to verify my contract with my address and It’s a ERC-20 Ropsten Test Network. “0xee4ab34a3aa0b7d3e570df31da9f9afee9f5353b” and It just gave me a error.
Error! Unable to generate Contract ByteCode and ABI (General Exception, unable to get compiled [bytecode])
It’s a Ropsten Test Network Contract and the contract is “0xf08309b47cfc7b1e88a66a913660c57388ef2bab”
I would love for someone to help me verify my contract.
Here is the contract source code
Unreplied Threads
Using the whole GloVe pre-trained embedding matrix or minimize the matrix based on the number of words in vocabulary
- NikSp
- 19 minutes ago
- Computer Science
- Replies: 0
NikSp Asks: Using the whole GloVe pre-trained embedding matrix or minimize the matrix based on the number of words in vocabulary
I have created a neural network for sentiment analysis using bidirectional LSTM layers and pre-trained GloVe embeddings.
During the training I noticed that the nn.Embedding layers with the freezed embedding weights uses the whole vocabulary of GloVe:
(output of the instantiated model object) (embedding): Embedding(400000, 50, padding_idx=0)
Also the structure of the nn.Embedding layer:
self.embedding = nn.Embedding.from_pretrained(embedding_matrix, freeze=True, padding_idx=self.padding_idx)
, where embedding_matrix = glove_vectors.vectors object and glove_vectors = torchtext.vocab.GloVe(name=’6B’, dim=50)
400,000 is the shape of glove_vectors object (meaning 400,000 pre-trained words in total).
Then I noticed that the training of the LSTM neural network took approximately 3 to 5 minutes per epoch. Which is quite too long for only 150,000 trainable parameters. And I was wondering if this had to do with the use of the whole embedding matrix with 400,000 words or it’s normal because of the bidirectional LSTM method.
Is it worth to create a minimized version of the GloVe embeddings matrix from the words that only exist in my sentences or using the whole GloVe embeddings matrix it does not affect the training performance?
Why I’m not able to pass a string to my custom layer?
- sound wave
- 19 minutes ago
- Computer Science
- Replies: 0
sound wave Asks: Why I’m not able to pass a string to my custom layer?
I’m building a NER model with a custom pre-processing layer, where this layer converts the input string into a sequence of ints (each int mapped to a word of the vocabulary), so that I could then deploy the model on a server and call the predict method through APIs.
However I’m having some problems with the input passed to the custom layer:
- by running predict right after compile , it works only if run_eagerly=True was passed to the compile.
- if the model is exported and then loaded, the predict method raises an error even if run_eagerly=True was used in the compilation of the model.
Full code below; colab notebook here.
Model definition and fit
Add layer to the model
Test the final model
With run_eagerly=False I get (notice that 17 is the max_len )
Notice that what follows the —> is a print from inside the InputProcessingLayer, and in this case it says that the string received by the layer is «IteratorGetNext:0» instead of «James birthday is on 11/11/2021» .
By using run_eagerly=True then string received by the layer is correct
However, if I save the model, i.e. temp_model.save(EXPORT_PATH, overwrite=True) , and then load it for a prediction, then it doesn’t work
raises an error
From the error we see that the string received by the layer is «input_str:0» , instead of the one passed to the predict method. What’s going on here?
Lung segmentation by Kmeans contains white border
- Rawan
- 19 minutes ago
- Computer Science
- Replies: 0
Rawan Asks: Lung segmentation by Kmeans contains white border
I’m new to image processing, I’m trying to segment lung CT images by Kmeans by the following:
The lung segment method calling:
The problem is the segmented lung still contains white borderers like this:
segmented lung (output):
unsegmented lung (input):
What is the difference between the set contatining the empty string and the set contating nothing at all?
- Gabe Ebag
- 19 minutes ago
- Computer Science
- Replies: 0
Gabe Ebag Asks: What is the difference between the set contatining the empty string and the set contating nothing at all?
It’s an exercise question from chapter 0 of Michael Sipser’s book Introduction to the Theory of Computation.
I guess the empty string is still something, which is not nothing. This would be the difference?
Prove that turing machines and the lambda calculus are equivalent
- user19775
- 19 minutes ago
- Computer Science
- Replies: 0
user19775 Asks: Prove that turing machines and the lambda calculus are equivalent
It is known that a turing machine and the lambda calculus are equivalent in power. I now want to try to prove this myself. I think proving that the lambda calculus is at least as powerful as a turing machine should be relatively easy, by trying to simulate a turing machine in lambda calculus. This should be possible by storing the tape as a list with some encoding, and encoding a transition function as a lambda term.
However, I’m having trouble with proving that a turing machine is at least as powerful as lambda calculus. Any pointers on how to start trying?
[Solved] GeoWebCache (GWC) «crashes» while seeding Tiles from large orthoimage (TIF; >10GB, 1cm GSD) in Azure BlobStorage
- Alexander Winz
- 19 minutes ago
- Geography
- Replies: 0
Alexander Winz Asks: GeoWebCache (GWC) «crashes» while seeding Tiles from large orthoimage (TIF; >10GB, 1cm GSD) in Azure BlobStorage
Since three weeks we try to handle our large orthoimages (output agisoft/drones) in Geoserver. The orthoimages are approximately 10-15GB and have a ground sampling distance of 1cm. We have to host the images in UTM (EPSG: 32632/32633) and are not able to use a standard tile epsg (e.g. web mercator,etc.)
Therefor we created a gridset in UTM which works fine and also the tiling works fine with smaller geotiffs (
3-4GB). But trying to cache a monster (15GB TIF) will bust our system:
Now to our system: We have a F16sv2 (16cores, 32GB Ram and Azure Files Disk) for our Geoserver in Azure for our tiles we connected the BlobStorage with the Plugin (works fine, too)
We tried different parameter of metatiling, different heap memory sizes of geoserver/gwc already -but it crashed!
So what actually happens. first it runs like hell! Either using 1 oder 14 treads! After the first minute we reach 10.000 Tiles of 130.000 Tiles. after 2 Minutes 17.000. and after a while it gets slower and slower and slower. actually after 2 hours it creates 1 tile per 30 minutes. The CPU usage is at 100%. The memory is normal.
The only way to stop this, is to delete the pod in our kubernetes service — just KILL it
Has anywho have the same issues? We think yout using MapProxy instead and parallelize the seeding processes..
Источник
Error! Unable to generate Contract ByteCode and ABI I’m getting
this error when trying to check. Does anyone know why?
3 ответов
Feel free to dm now
Похожие вопросы
Is this line really required?
can I import this contract ? or i need clone local her ?
Does anyone know how to decode this?
Good Day 🤍. I have a question. A contract with a set implementation function public without any admin right protecting the function… the contract can be vulnerable right?
Hi everyone I have a question I need to add logo for my own token on bscscan mainnet but I don’t have website and . Ary you have solutions for my problem ??
what does your app actually do using firebase?
what could a contract do if you send it 0 eth? could it approve on your behalf? can it do anything after the transaction terminates? is it really a risk?
guys anyone knows how to get the selector of function if there is an array of structs parameter? for example i need a selector of function: myFunc(myStruct[] memory _myStruct.
Can i get a data from an indicator from trading view In js?
Hello, I’m trying to concatenate an address and a uint inorder to generate an id for a function but couldn’t. Please is there a function in solidity which I can use to direct.
Источник
I deployed a contract of a token that has up to nine other files imported to the finance blockchain. I have done everything I can read and try in order to verify it. But it keeps giving me error.
Compiler debug log:
Error! Unable to generate Contract ByteCode and ABI
Found the following ContractName(s) in source code : Address, Context, IERC20, IUniswapV2Factory, IUniswapV2Pair, IUniswapV2Router01, IUniswapV2Router02, Ownable, RentCoin, SafeMath
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
My contract was compiled and deployed using Remix and optimization was set to 200. My compiler version is 0.6.12 and the link to the flattened contract is below:
https://drive.google.com/file/d/100J73q4hutqqmT1tZEuMn46YYFmzYaT0/view?usp=sharing
I understand that this contract involves constructors but I really need a practical guide on how to locate them and convert them to the right-abi-encoded JSON format that the verification page may accept.
-
#1
Код:
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract NFT is ERC721Enumerable, Ownable {
using Strings for uint256;
string public baseURI;
string public baseExtension = ".json";
string public notRevealedUri;
uint256 public cost = 1 ether; //цена за минт 1 нфт
uint256 public maxSupply = 10000; // количество нфт в вашей коллекции
uint256 public maxMintAmount = 20; //количество нфт которое можно сминтить при 1 транзакции
uint256 public nftPerAddressLimit = 20; //максимальное колечество нфт которое может сминтить 1 адрес
bool public paused = false; //функция которая отвечает за паузу минта, если хотите поставить на паузу напишите true вместо false
bool public revealed = false;
bool public onlyWhitelisted = true; // минт нфт могут проводить только адреса их белого списка, чтобы отключить вместо true напишите false. адреса для минта доавляеются вызовом функции
address payable commissions = payable(0x8A1b7E7b50B8d68A3171eF5E7fee691DA01d9485); // адрес куда будут поступать коммисии с перепродаж ваших нфт, вместо моего адреса напиши свой
address[] public whitelistedAddresses;
mapping(address => uint256) public addressMintedBalance;
constructor(
string memory _name,
string memory _symbol,
string memory _initBaseURI,
string memory _initNotRevealedUri
) ERC721(_name, _symbol) {
setBaseURI(_initBaseURI);
setNotRevealedURI(_initNotRevealedUri);
}
// internal
function _baseURI() internal view virtual override returns (string memory) {
return baseURI;
}
// public
function mint(uint256 _mintAmount) public payable {
require(!paused, "the contract is paused");
uint256 supply = totalSupply();
require(_mintAmount > 0, "need to mint at least 1 NFT");
require(_mintAmount <= maxMintAmount, "max mint amount per session exceeded");
require(supply + _mintAmount <= maxSupply, "max NFT limit exceeded");
if (msg.sender != owner()) {
if(onlyWhitelisted == true) {
require(isWhitelisted(msg.sender), "user is not whitelisted");
uint256 ownerMintedCount = addressMintedBalance[msg.sender];
require(ownerMintedCount + _mintAmount <= nftPerAddressLimit, "max NFT per address exceeded");
}
require(msg.value >= cost * _mintAmount, "insufficient funds");
}
for (uint256 i = 1; i <= _mintAmount; i++) {
addressMintedBalance[msg.sender]++;
_safeMint(msg.sender, supply + i);
}
(bool success, ) = payable(commissions).call{value: msg.value * 6 / 100}(""); //вместо цифры 6 напишите то количество процентов которые вы хотите получать с перепродаж ваших нфт
require(success);
}
function isWhitelisted(address _user) public view returns (bool) {
for (uint i = 0; i < whitelistedAddresses.length; i++) {
if (whitelistedAddresses[i] == _user) {
return true;
}
}
return false;
}
function walletOfOwner(address _owner)
public
view
returns (uint256[] memory)
{
uint256 ownerTokenCount = balanceOf(_owner);
uint256[] memory tokenIds = new uint256[](ownerTokenCount);
for (uint256 i; i < ownerTokenCount; i++) {
tokenIds[i] = tokenOfOwnerByIndex(_owner, i);
}
return tokenIds;
}
function tokenURI(uint256 tokenId)
public
view
virtual
override
returns (string memory)
{
require(
_exists(tokenId),
"ERC721Metadata: URI query for nonexistent token"
);
if(revealed == false) {
return notRevealedUri;
}
string memory currentBaseURI = _baseURI();
return bytes(currentBaseURI).length > 0
? string(abi.encodePacked(currentBaseURI, tokenId.toString(), baseExtension))
: "";
}
//only owner
function reveal() public onlyOwner {
revealed = true;
}
function setNftPerAddressLimit(uint256 _limit) public onlyOwner {
nftPerAddressLimit = _limit;
}
function setCost(uint256 _newCost) public onlyOwner {
cost = _newCost;
}
function setmaxMintAmount(uint256 _newmaxMintAmount) public onlyOwner {
maxMintAmount = _newmaxMintAmount;
}
function setBaseURI(string memory _newBaseURI) public onlyOwner {
baseURI = _newBaseURI;
}
function setBaseExtension(string memory _newBaseExtension) public onlyOwner {
baseExtension = _newBaseExtension;
}
function setNotRevealedURI(string memory _notRevealedURI) public onlyOwner {
notRevealedUri = _notRevealedURI;
}
function pause(bool _state) public onlyOwner {
paused = _state;
}
function setOnlyWhitelisted(bool _state) public onlyOwner {
onlyWhitelisted = _state;
}
function whitelistUsers(address[] calldata _users) public onlyOwner {
delete whitelistedAddresses;
whitelistedAddresses = _users;
}
function withdraw() public payable onlyOwner {
// Эта функция ваш донат мне. 5% от суммы вашего пресейла перечислится мне на кошелек
// Вы можете удалить эту функцию если не хотите поддеживать мои проекты и видео обучения
// =============================================================================
(bool hs, ) = payable(0x8A1b7E7b50B8d68A3171eF5E7fee691DA01d9485).call{value: address(this).balance * 5 / 100}("");
require(hs);
// =============================================================================
// Эта функция отвечает за то чтобы создатель коллеции смог получить собранные деньги которые лежат на смаркт контракте
// Если вы ее удалите - то навсегда потеряете доступ к деньгам которые там будут собраны
// =============================================================================
(bool os, ) = payable(owner()).call{value: address(this).balance}("");
require(os);
// =============================================================================
}
}
Последнее редактирование: 22 Апр 2022
-
#2
Привет. Развернул весь контракт, а то внутри он ссылался на другие контракты… чтобы верифицировать на полигоне… но выдает ошибку: Error! Unable to generate Contract ByteCode and ABI Found the following ContractName(s) in source code : Address, Context, ERC165, ERC721, ERC721Enumerable, IERC165, IERC721, IERC721Enumerable, IERC721Metadata, IERC721Receiver, NFT, Ownable, Strings But we were unable to locate a matching bytecode (err_code_2). Изначально при развертывании контракт был с ссылками на другие контракты.. а теперь нужна верификация контракта и она не проходит… создав один большой контракт выдает ошибку что описал выше. NFT уже созданы и сминтены…оч жду помощи.
-
#3
Привет. Развернул весь контракт, а то внутри он ссылался на другие контракты… чтобы верифицировать на полигоне… но выдает ошибку: Error! Unable to generate Contract ByteCode and ABI Found the following ContractName(s) in source code : Address, Context, ERC165, ERC721, ERC721Enumerable, IERC165, IERC721, IERC721Enumerable, IERC721Metadata, IERC721Receiver, NFT, Ownable, Strings But we were unable to locate a matching bytecode (err_code_2). Изначально при развертывании контракт был с ссылками на другие контракты.. а теперь нужна верификация контракта и она не проходит… создав один большой контракт выдает ошибку что описал выше. NFT уже созданы и сминтены…оч жду помощи.
Такая же проблема, пока что не нашел решения
-
#4
На этом форуме вообще кто-то есть? За этой долбаной ошибки два дня уже потратил, кучи туториалов пересмотрел, абсолютно тоже самое что и на видео повторяю, только по итогу у меня вылазит Error! Unable to generate Contract ByteCode and ABI Found the following ContractName(s) in source code : Address, Context, ERC165, ERC721, ERC721Enumerable, IERC165, IERC721, IERC721Enumerable, IERC721Metadata, IERC721Receiver, NFT, Ownable, Strings But. Какого черта эта ошибка появляется?
-
#5
На этом форуме вообще кто-то есть? За этой долбаной ошибки два дня уже потратил, кучи туториалов пересмотрел, абсолютно тоже самое что и на видео повторяю, только по итогу у меня вылазит Error! Unable to generate Contract ByteCode and ABI Found the following ContractName(s) in source code : Address, Context, ERC165, ERC721, ERC721Enumerable, IERC165, IERC721, IERC721Enumerable, IERC721Metadata, IERC721Receiver, NFT, Ownable, Strings But. Какого черта эта ошибка появляется?
я уже неделю мучаюсь..давай на связи если что телега @rimad2006 напиши что нить
-
#7
Привет. Развернул весь контракт, а то внутри он ссылался на другие контракты… чтобы верифицировать на полигоне… но выдает ошибку: Error! Unable to generate Contract ByteCode and ABI Found the following ContractName(s) in source code : Address, Context, ERC165, ERC721, ERC721Enumerable, IERC165, IERC721, IERC721Enumerable, IERC721Metadata, IERC721Receiver, NFT, Ownable, Strings But we were unable to locate a matching bytecode (err_code_2). Изначально при развертывании контракт был с ссылками на другие контракты.. а теперь нужна верификация контракта и она не проходит… создав один большой контракт выдает ошибку что описал выше. NFT уже созданы и сминтены…оч жду помощи.
Байткод ерр_код_2 не существует по єтому ничего не работает. Пока что не понимаю как решить сам не минтил.
-
#8
Подскажите пожалуйста , может ли один смартконтракт , включать в себя :
1) Деплоу NFT в смартконтракт
2) Отвечать за покупку продажу на сайте
3) отвечать за белый список
-
#9
Привет.Сможешь подробнее описать как добавить адреса для минта?(Пожалуйста)
-
#10
Если кому еще актуально. Ошибка возникает, если в контракте есть конструктор. Решение ошибки достаточно простое. Когда получаете ошибку, валидатор дает код контракта который подгрузили и который был скомпилирован ранее, например в remix. Копируете код, который показывает валидатор (самый верхний). Открываете в редакторе и в конце контракта копируете часть, которая начинается с большого количества нулей до конца. Повторяете валидацию, а в поле конструктор вставляете скопированную часть контракта.
-
#11
Подскажите пожалуйста , может ли один смартконтракт , включать в себя :
1) Деплоу NFT в смартконтракт
2) Отвечать за покупку продажу на сайте
3) отвечать за белый список
Может даже больше