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

fix(wallet): use correct type for contract_id in the contract constitution file format #4179

Merged

Conversation

mrnaveira
Copy link
Contributor

Description

Changed the type of the contract_id field in the file format from a PublicKey to a String, and then parsed it as hex into a FixedHash (which is the proper type).

Motivation and Context

When using a real contract_id value on contract constitution publishing, we got a file format parsing error

How Has This Been Tested?

Changed the contract_id field in the fixture file to a value that trigger the issue. The test now pass.

sdbondi
sdbondi previously approved these changes Jun 9, 2022
@aviator-app aviator-app bot merged commit 669a1bd into tari-project:development Jun 10, 2022
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

Successfully merging this pull request may close these issues.

2 participants