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
Before v6, which separated the vm and evm packages, one could instantiate a vm object and use: vm.getActiveOpcodes ot get the list of available opcodes.
Now that these 2 packages had been separated, the getActiveOpcodes function is no longer available in the context of a vm object, but only if you instantiate a separate evm object and access it via that object.
This creates an awkward situation for us, where we would instantiate both vm and evm objects, but the evm object will only be used for accessing the getActiveOpcodes.
If you create a VM without any arguments, then it will by default instantiate the EVM. You can access the method by casting it: (<any>vm.evm).getActiveOpcodes(). We could however add this method as optional to the interface, so you can do; vm.evm.getActiveOpcodes!(). Would that work?
Thanks for bringing this to my attention, I didn't know the casting trick would work.
Having said that, I do feel that adding this function to the interface would be the more natural way to go with.
Before v6, which separated the
vm
andevm
packages, one could instantiate avm
object and use:vm.getActiveOpcodes
ot get the list of available opcodes.Now that these 2 packages had been separated, the
getActiveOpcodes
function is no longer available in the context of avm
object, but only if you instantiate a separateevm
object and access it via that object.This creates an awkward situation for us, where we would instantiate both
vm
andevm
objects, but theevm
object will only be used for accessing thegetActiveOpcodes
.See this comment for reference.
The text was updated successfully, but these errors were encountered: