smlxl / evm.codes

Source for evm.codes an Ethereum Virtual Machine Opcodes Interactive Reference
https://evm.codes/
MIT License
727 stars 135 forks source link

Feature request: allow bytecode in Playground to start with 0x #280

Closed radeksvarz closed 11 months ago

radeksvarz commented 11 months ago

Bytecode is often represented in hex format with preceding 0x prefix (e.g. 0x6080...)

Currently the Playground complains:

[Error] Only hexadecimal characters are allowed

To remove this error one has to delete 0x.

Proposal:

Allow and ignore 0x prefix for bytecode in Playground.

2xic commented 11 months ago

@radeksvarz thanks for the feedback! You should now be able to have a 0x prefix in the bytecode editor 😄

radeksvarz commented 11 months ago

wow, you guys are quick. 👏 Motivates to report more :)