So I have this library:
library Hasher {
function MiMCSponge(uint256 in_xL, uint256 in_xR) public pure returns (uint256 xL, uint256 xR);
}
And I'm trying to deploy it:
const Hasher = await hre.ethers.getContractFactory('Hasher')
const hasher = await Hasher.deploy()
But I get this error:
NomicLabsHardhatPluginError: You are trying to create a contract factory for the contract Hasher, which is abstract and can't be deployed.
If you want to call a contract using Hasher as its interface use the "getContractAt" function instead.