1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Remove unnecessary else in test/e2e/beta/contract-test/contract.js

This commit is contained in:
Dan Miller 2018-08-14 19:18:04 -02:30
parent ff72423491
commit 3c8a4162a4

View File

@ -48,7 +48,8 @@ deployButton.addEventListener('click', async function (event) {
}, function (e, contract) {
if (e) {
throw e
} else if (typeof contract.address !== 'undefined') {
}
if (typeof contract.address !== 'undefined') {
console.log('Contract mined! address: ' + contract.address + ' transactionHash: ' + contract.transactionHash)
document.getElementById('contractStatus').innerHTML = 'Deployed'