When I compile solidity file that has more then two contracts, Solc gives me some binaries.

That binaries include bytecode of library.

How can I know which one is library's bytecode if I don't have any information about contracts such as contract's name?

enter image description here

like this image(blue box is just file path)

if i only have those bytecodes, how can I know which is library? (In this picture Ownable is Library) plus, if I want to deploy this contracts, do I have to deploy all of them?

  • The name of each binary file is the name of the contract or library. – goodvibration Jul 13 '20 at 9:45
  • Um...I know that. But what I am curious about is how to know if there are only binary without a name. – atti Jul 14 '20 at 10:25
  • Please share how exactly you are getting "only binary without a name". – goodvibration Jul 14 '20 at 10:27
  • I added the content to the text, could you take a look at it? – atti Jul 14 '20 at 13:52
  • Are you joking? The contract name appears right above the binary! – goodvibration Jul 14 '20 at 13:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.