Closed Nuttymoon closed 1 year ago
Currently, the library uses the VmVersions struct to deserialize the vmVersions field of info.getNodeVersion. This struct only supports the 3 VMs of the Primary Network: https://github.com/ava-labs/avalanche-types-rs/blob/6c7603418b9b00d5785c9de4ecf8f93fab6a3542/src/jsonrpc/info.rs#L305-L309
VmVersions
vmVersions
As the number of Subnets/VMs increase, we should be able to parse any number of VMs as a HashMap.
HashMap
Currently, the library uses the
VmVersions
struct to deserialize thevmVersions
field of info.getNodeVersion. This struct only supports the 3 VMs of the Primary Network: https://github.com/ava-labs/avalanche-types-rs/blob/6c7603418b9b00d5785c9de4ecf8f93fab6a3542/src/jsonrpc/info.rs#L305-L309As the number of Subnets/VMs increase, we should be able to parse any number of VMs as a
HashMap
.