Unverified Commit be97492b authored by yann300's avatar yann300 Committed by GitHub

show message if debugging on kovan (#1149)

parent 2446e23c
......@@ -166,6 +166,19 @@ export const DebuggerUI = (props: DebuggerUIProps) => {
}
const web3 = await debuggerModule.getDebugWeb3()
try {
if (await web3.eth.net.getId() === 42) {
setState(prevState => {
return {
...prevState,
validationError: 'The Kovan network is unfortunately not supported.'
}
})
return
}
} catch (e) {
console.error(e)
}
let currentReceipt
try {
currentReceipt = await web3.eth.getTransactionReceipt(txNumber)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment