Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Websocket logs subscription not supported by Geth Client #2206

Closed
@Ruj89

Description

Platform: node:lts-alpine Docker image
Ganache: v7.0.0
Node: v16.13.2
npm: 8.1.2
Go: 1.17.4
go-ethereum: v1.10.15

Description:

When I receive a log, after a subscription, the go-ethereum library try to send through a chan the Log typed object, but it cannot marshal the Ganache websocket message:

json: cannot unmarshal array into Go value of type types.Log

Steps to reproduce:

  1. Deploy a smart contract;
  2. Listen to the ganache ws endpoint for a event with a Geth client;
  3. Execute a smart contract method that calls an event.

Expected result:
The Ganache WS server sends a canonical event message JSON object to Geth client.

Actual result:
The Ganache WS server sends an array of objects to Geth client.

Notes:
On Ganache CLI v6.12.2 the JSON event message was correctly parsed.

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions