Automatically merged updates to draft EIP(s) 1193

Hi, I'm a bot! This change was automatically merged because:

 - It only modifies existing Draft or Last Call EIP(s)
 - The PR was approved or written by at least one author of each modified EIP
 - The build is passing
This commit is contained in:
Ryan Ghods 2018-10-27 19:42:11 +02:00 committed by EIP Automerge Bot
parent bf9329d48f
commit e6a686ddc1
1 changed files with 2 additions and 1 deletions

View File

@ -167,7 +167,7 @@ ethereum
.then(subscriptionId => {
subId = subscriptionId;
ethereum.on('notification', result => {
if (result.subscriptionId === subscriptionId) {
if (result.subscription === subscriptionId) {
if (result.result instanceof Error) {
const error = result.result;
console.error(
@ -175,6 +175,7 @@ ethereum
Code: ${error.code}. Data: ${error.data}`
);
} else {
const block = result.result;
console.log(`New block ${block.number}:`, block);
}
}