CRYPTO NEWS

K'oneta

#K'oneta #TheSupremeTeam
Artist Name: K'oneta

Who are you?

Im different got my own sound , i love to experiment on different sounds

Where are you from?

Memphis and Its lit we been live since forever

How can we follow you?

SoundCloud

Song Title: Oooh Freestyle

Listen to K'oneta:

Source: https://supremepr.us/

Different return types from Ethers queryFilter

I have an upgradable contract (via OpenZeppelin proxy method) that used to emit this event: event Log(uint indexed timestamp, string entry); Now I have upgraded that event to this specification: event Log(uint indexed timestamp, address origin, string entry); When I query the contract for the upgraded event with Ethers like this: const EventLog = await::Listen

I have an upgradable contract (via OpenZeppelin proxy method) that used to emit this event:

event Log(uint indexed timestamp, string entry); 

Now I have upgraded that event to this specification:

event Log(uint indexed timestamp, address origin, string entry); 

When I query the contract for the upgraded event with Ethers like this:

const EventLog = await ethers.getContractFactory("EventLog"); const eventLog = await EventLog.attach('....'); const res = await eventLog.queryFilter({topics: [ethers.utils.id("Log(uint256,address,string)")]}); 

I get an array of (Event?) objects that do contain the event name and an args array.

But when I query for the older version of the events from the upgraded contract using this:

const res = await eventLog.queryFilter({topics: [ethers.utils.id("Log(uint256,string)")]}); 

I get an array of (Transaction?) objects. There is no event name and no args array.

Why is it so and how can I get the Event objects of the previous version?

K'oneta

Shopping cart
There are no products in the cart!
Continue shopping
0