(web3: Web3)
| 6 | const POLL_INTERVAL = 500; |
| 7 | |
| 8 | export async function networkName(web3: Web3): Promise<string> { |
| 9 | let id = await web3.eth.net.getId(); |
| 10 | let name = networks[id]; |
| 11 | if (!name) { |
| 12 | throw new Error(`Don't know what name the network id ${id} is`); |
| 13 | } |
| 14 | return name; |
| 15 | } |
| 16 | |
| 17 | export function waitUntilTransactionMined( |
| 18 | web3: Web3, |
no outgoing calls
no test coverage detected