Call an entrypoint with the following code (omitting the setups):
Note that contract KT1MwH7SqQgfod9Lmsu9dqFmY3SBASEiEjku is already deployed to Ithaca.
Current behaviour
It will give an "Invalid bytes" error.
Expected behavior
Calling an entrypoint should succeed and after calling the entrypoint, if you go and inspect the storage using TzKT, it should be a47ef2.
Description Right now, Taquito only accepts hex bytes without the
0x
prefix. But we want to support both formats, with or without0x
.Steps To Reproduce Steps to reproduce the behavior:
Deploy the following contract:
Call an entrypoint with the following code (omitting the setups): Note that contract KT1MwH7SqQgfod9Lmsu9dqFmY3SBASEiEjku is already deployed to Ithaca.
Current behaviour It will give an "Invalid bytes" error.
Expected behavior Calling an entrypoint should succeed and after calling the entrypoint, if you go and inspect the storage using TzKT, it should be
a47ef2
.Extra Code responsible for this:
from file
taquito/packages/taquito-michelson-encoder/src/tokens/comparable/bytes.ts