ethereumjs-abi
ethereumjs-abi copied to clipboard
Allow using '0x...' as input value for bytes
Coverage increased (+2.04%) to 85.757% when pulling 08593a3b8df281ae67019faf2eff693e81887b87 on yann300:fixEncodingBytes into ee6ded67235a98f3ef4ae2a338aee70a9f68fe20 on ethereumjs:master.
I wonder if it would be better to instead require a Buffer
for bytes and let the caller make the decision?
That would break project that already use it (Mist?) . But I am fine with it .. that is cleaner anyway
That's also very convenient to be able to input a hex string (specially when you have to deal with arrays...) what do you want to do with this one? cause it leads to a very nasty bug in Remix...
@axic State of discussion in this PR is also unclear, needs further clarification.