evmone icon indicating copy to clipboard operation
evmone copied to clipboard

evmone-t8n reads currentDifficulty as hex field even if it is dec

Open winsvega opened this issue 11 months ago • 4 comments

Apparently evmone-t8n read currentDifficulty : "131072" as a hex value `0x131072" event though it should be "0x020000" the field is only hex if it is prefixed by 0x otherwise it is dec.

yes there is no strict format on t8n env.json or result.json. it's an issue.

please check that other fields are parsed from json in t8n reader correctly (if no 0x prefix then the field is dec)

winsvega avatar Dec 04 '24 11:12 winsvega

This is pretty fucked up that you put numeric values as strings...

chfast avatar Dec 04 '24 11:12 chfast

well, I think I can enforce from pyspecs to always put 0x hex values in env.json or any t8n input configs

winsvega avatar Dec 04 '24 12:12 winsvega

We can fix it...

chfast avatar Dec 04 '24 12:12 chfast

@winsvega Do you have an input I can use reproduce?

rodiazet avatar Jan 20 '25 11:01 rodiazet