How to add contract library address when verify and publish source code

I publish a contract on ethereum main network, I use three libraries in my contract:

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

now I want to verify & publish my contract on etherscan, it requires Library Contract Address, how to get it?

If you are using Remix, right-click on the contract file and select 'flatten' to incorporate all the used libraries into a single file.
Or you may use hardhat to verify the contract on etherscan, here's the tutorial:

Thankyou! it really helpful

1 Like