"contract binary not set. Can't deploy new instance." when deploying simple contract
See original GitHub issuecontract JudgeSubscriber {
function judgeCallback(bytes32 uuid, address liar) external;
}
This interface throws contract binary not set. Can't deploy new instance.
when deployed with
deployer.deploy(JudgeSubscriber);
More info from @elenadimitrova from Gitter who reproduced it:
I can reproduce however I do get random failures on
truffle migrate --reset
sometimes it succeeds in deploying and sometimes it fails with contract binary not set and sometimes it gets stuck and testrpc emits numerouseth_getFilterChanges
calls
Issue Analytics
- State:
- Created 7 years ago
- Comments:14 (4 by maintainers)
Top Results From Across the Web
Why my contract binary does not set?
Can't deploy new instance. This contract may be abstract, not implement an abstract parent's methods completely or not invoke an inherited ...
Read more >Cannot deploy HelloWorld contract to my network (testrpc)
Your truffle migrate command is showing nothing was deployed. Your output should look something like this: $ truffle migrate Using network ...
Read more >How to Deploy Smart Contracts on Hedera – Part 1: A Simple…
You can deploy a smart contract on Hedera in four steps: Write the contract and compile to bytecode; Add the bytecode file to...
Read more >Run Migrations - Truffle Suite
Deploy a specific contract, specified by the contract object, with optional constructor arguments. This is useful for singleton contracts, such that only one ......
Read more >Creating and Deploying a Contract - Remix's documentation!
This contract is very basic. The goal is to quickly start to create and to interact with a sample contract. _images/a-file-explorer-new-file2.png.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
During the last 2 weeks I have come across this error twice, and both times resolved it by doing a Google search and this issue comes up with the answer:
Maybe the error message should be updated to give a hint towards that.
Similar issue migrating ERC20 token standard contract.
Yes, this an “abstract” contract as the methods are not implemented. I have attempted to add my
Token.sol
implementation onto the same file where the ERC20 standard is implemented; However, am still gettingcontract binary is not set
error.Has anyone had success migrating the ERC20 contract?