From e6a686ddc1d1773ba3e19e54111392b0a4812f3f Mon Sep 17 00:00:00 2001 From: Ryan Ghods Date: Sat, 27 Oct 2018 19:42:11 +0200 Subject: [PATCH] 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 --- EIPS/eip-1193.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/EIPS/eip-1193.md b/EIPS/eip-1193.md index 160c88e33e3b77..32d68db46fdad7 100644 --- a/EIPS/eip-1193.md +++ b/EIPS/eip-1193.md @@ -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); } }