I can't seem to make the linker.linkBytecode() method to work...

Here's how I'm using it:

const linkedBytecode = linker.linkBytecode(mainContract.bytecode, {
        'UserLib': userLibContract.options.address

If I try to console.log(linkedBytecode) it outputs the bytecode with placeholders that should've been replaced by the linker!

I noticed that the compiled bytecode of my mainContract outputs something like ...5173__IssueLib.sol:IssueLib_________________916.... whereas on the official documentation it says that it should output something like ...5173__IssueLib_______________916....

What Am I missing here?

Thanks in advance! :)

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.