Closed bh2smith closed 1 year ago
This PR accomplishes two things:
store_event
So before we were seeing: Error: store_event while now we see
Error: store_event
Error: store_event Log { event: "erc1155_uri", block_number: 15275205, log_index: 137, transaction_index: 46, address: Address(0x495f947276749Ce646f68AC8c248420045cb7b5e), fields: [String("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u{1}\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"), Uint(Uint(BitWidth(256), 85244680541858928040054182450164838257542484891320981406559063124705063993345))] }
which uniquely identifies the offending Log.
Replaces trim null bytes with replace null bytes (so we don't miss internal null bytes - like in the updated test example).
trim
replace
Altered test now passes.
I have tested this on the offending event log. Will merge and deploy.
This PR accomplishes two things:
store_event
error:So before we were seeing:
Error: store_event
while now we seewhich uniquely identifies the offending Log.
Replaces
trim
null bytes withreplace
null bytes (so we don't miss internal null bytes - like in the updated test example).Test Plan
Altered test now passes.