Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
davidyuk opened this issue Feb 1, 2023 · 0 comments
Open

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

davidyuk opened this issue Feb 1, 2023 · 0 comments

Comments

@davidyuk
Copy link
Member

davidyuk commented Feb 1, 2023

tag: ByteArray2Int(decoded.data[0]),
vsn: ByteArray2Int(decoded.data[1]),

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant