We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90337ce commit c47f662Copy full SHA for c47f662
deployments/getContractAddress.ts
@@ -44,17 +44,15 @@ export const getNetworkName = (network: ethers.providers.Networkish) => {
44
};
45
46
// ts-prune-ignore-next
47
-export const getContractAbi = (contractTag: string, network: ethers.providers.Networkish): string => {
+export const getContractAbi = (contractTag: string, network: ethers.providers.Networkish) => {
48
try {
49
const fileName = getContractPath(contractTag, network);
50
const contractJSON = fs.readFileSync(fileName).toString();
51
- const abi = JSON.parse(contractJSON).abi
52
- return JSON.stringify(abi)
+ return JSON.parse(contractJSON).abi;
53
} catch (err) {
54
console.log(err);
55
}
56
-
57
- return '0x0'
+ return {};
58
59
60
const getContractAddress = (
0 commit comments