(networkName: string)
| 105 | * @returns The AirnodeRrpV0 contract address for the named network |
| 106 | */ |
| 107 | export const getExistingAirnodeRrpV0 = (networkName: string) => { |
| 108 | const networks = hardhatConfig.networks(); |
| 109 | |
| 110 | const networkId = networks[networkName].chainId.toString() as keyof typeof AirnodeRrpV0; |
| 111 | |
| 112 | if (networkId) { |
| 113 | return AirnodeRrpV0[networkId]; |
| 114 | } else { |
| 115 | throw new Error(`Missing AirnodeRrpV0 address for network: ${networkName}`); |
| 116 | } |
| 117 | }; |
no outgoing calls
no test coverage detected