You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I build contract, some object filed in bytecode&deployed_bytecode missing 0x prefix.making strict check for hex string failed.
Here is different object filed prefix with same command:
A contract:
this happens because the MemoryTest has links and serialized as Bytecode::Unlinked
and string serialisation does not add 0x prefix,
I wonder what the consistent format should we, always 0x prefixed or never, like hardhat @gakonst?
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.1.0 (ff4ec0f 2022-02-15T00:28:49.003614+00:00)
What command(s) is the bug in?
forge build
Operating System
macOS (M1)
Describe the bug
when I build contract, some
object
filed inbytecode
&deployed_bytecode
missing 0x prefix.making strict check for hex string failed.Here is different object filed prefix with same command:
A contract:
and out in bytecode filed:
but in contract B:
the output in bytecode fild is:
It seems that compiler treat library and contract differently, making object output format not consistent.
The text was updated successfully, but these errors were encountered: