(name: ConstantKeys, network: string)
| 102 | }; |
| 103 | |
| 104 | export function getConstantByNetwork(name: ConstantKeys, network: string): string { |
| 105 | let value = constants[network][name]; |
| 106 | if (!value) { |
| 107 | throw new Error(`Don't know about the constant '${name}' for network ${network}`); |
| 108 | } |
| 109 | return value; |
| 110 | } |
| 111 | |
| 112 | export async function getConstant(name: ConstantKeys, network: string): Promise<string>; |
| 113 | export async function getConstant(name: ConstantKeys, web3: Web3): Promise<string>; |
no outgoing calls
no test coverage detected