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.
Closed
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:
- Deploy a smart contract;
- Listen to the ganache ws endpoint for a event with a Geth client;
- 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.