hirosystems / stacks-subnets

Stacks Subnets: a layer-2 scaling solution for Stacks, intended for high-throughput, low-latency workloads
http://docs.hiro.so
GNU General Public License v3.0
52 stars 13 forks source link

fix: Should fix failures reading subnet contract version #277

Closed jbencin closed 1 year ago

jbencin commented 1 year ago

Description

Properly deserialize response from call to read-only function get-version in subnet.clar

Applicable issues

Additional info (benefits, drawbacks, caveats)

This is somewhat messy, and contains some unwrap()s and panic!()s when things don't go as expected (although I don't really expect them to ever be triggered). We are trying to get this out ASAP, so I'll clean up later.

Checklist