e2689792b0
There's no need for macro `toSymbolName` to convert fork enum values to their presentation texts (logging etc) then re-parse them back to a fork enum value. `asFork` is already used in the same function and works without these steps, so use it consistently. Same applies to `op.toSymbolName` and `asOp`. This makes the code simpler, and removes a text pattern-matching requirement. The patch has been checked to confirm it doesn't change the compiled code. Motivation: The forks list will be removed from VM because it is used outside the VM as well. Doing so highlighted vm2's `toSymbolName`. It's not needed, and it's best if the VM doesn't constrain text strings used outside the VM Signed-off-by: Jamie Lokier <jamie@shareable.org> |
||
---|---|---|
.. | ||
interpreter | ||
blake2b_f.nim | ||
blscurve.nim | ||
code_stream.nim | ||
computation.nim | ||
interpreter_dispatch.nim | ||
map_to_curve_g1.nim | ||
memory.nim | ||
message.nim | ||
nimdoc.cfg | ||
precompiles.nim | ||
stack.nim | ||
state.nim | ||
state_transactions.nim | ||
transaction_tracer.nim | ||
types.nim |