I'm trying to edit returned result from web3.js but getting the error:
TypeError: Cannot assign to read only property 'fixtureId' of object '[object Array]'
My react js code:
let event = new web3.eth.Contract(Events.abi, Events.networks[networkId].address);
let result = event.methods.getFixtures(date).call();
result[0].fixtureId = 10; <- here it throws me an error
As I understand, call() method returns an immutable object. But is it possible to make it return a mutable object?
Plus, it returns strange object like:
0: "1"
1: "some event"
2: "868008"
status: "1"
title: "some event"
fixtureId: "868008"