0

I'm writing test for my smart contracts with truffle test. I got these strings of code:

Library.new()
  .then((lib) => {
    console.log(lib.address); //0xd6f066a5b07562b6c8fdb6a59b7ba42036d5516c
    console.log(Library.isDeployed()); //false
    Deployer.link(Library); // Error: Cannot link contract without an address.
    ...

As you can see instance of library has an address but contract Library didn't handle it and still has false value in isDeployed() field. This weird behavior causes error on the next step when I'm trying to link my library to another contract.

Any advices?

1 Answer 1

1

Solved this problem by myself. Solution described here: https://github.com/trufflesuite/truffle/issues/758#issuecomment-361688972

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.