-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Genesis: add an option to load account code from a file #4774
Comments
so the "code" : "0x0001" should work directly from json file. but speaking of wasm first there should be a support for wasm code |
This only cares about filling the account code with raw data, whatever that data is. Nothing in the genesis should be processed or compiled afterwards. The above feature isn't good only for ewasm, but for example the blockhash EVM bytecode could be placed there too. |
The I'm just worried about using relative paths in the JSON file... |
Maybe just require all code files to be in the same dir as json? and |
hm. yes this sounds like a nice feauture. in the same dir might become with too many files. a subdir would be reasonable |
I can make the relative paths to work relatively to the config.json file. But we also use string literals for config :) |
I think another decision to be made is whether the file referenced should have:
|
the function importCode deals with hex and prefixed hex. |
I don't think I would personally prefer to take the file as binary but considering all tools output EVM bytecode as hexadecimal (without the |
e.g.
The text was updated successfully, but these errors were encountered: