mirror of
https://github.com/status-im/EIPs.git
synced 2025-03-04 00:20:54 +00:00
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:
parent
bf9329d48f
commit
e6a686ddc1
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user