I have been using the Hardhat environment
for a while now, and every time I have to provide the ABI
to the front-end team, I need to copy-paste the ABI
manually from the JSON
file, since it contains other useless values which they don't need.
{
"_format": "hh-sol-artifact-1",
"contractName": "Test",
"sourceName": "contracts/Test.sol",
"abi": [...]
}
So, my question is if there is a script that I can use that extracts the ABI
part automatically, and create separate files for these just ABIs
? Not sure if the question is relevant, but just wanted to try something that can make our lives easier. Thanks in advance.