aeternity / aepp-calldata-js

Aeternity data serialization library
ISC License
3 stars 4 forks source link

Ensure that tag and vsn are supported in ContractEncoder:decode #191

Open davidyuk opened 1 year ago

davidyuk commented 1 year ago

https://github.com/aeternity/aepp-calldata-js/blob/dd31ff8e57eaaba5f567eedf9446b19f97c21b13/src/ContractEncoder.js#L19-L20

To throw an exception if tag and vsn are not equal to a constant, because in the future a new version may appear and it can be very confusing.