Skip to content

Conversation

@MIxAxIM
Copy link
Contributor

@MIxAxIM MIxAxIM commented Feb 5, 2025

Summary

The ExecutionUnits struct has JSON field tags with incorrect capitalization. The JSON response received contains lowercase keys ('mem' and 'steps'), while the struct expects 'Mem' and 'Steps', causing a mismatch. As a result, the EvaluateTx function returns an empty slice. Additionally, replacing []models.RedeemerEvaluation with models.EvaluateTxResponse in the EvaluateTx function improves consistency and readability.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

fixing the following issue #53

@MIxAxIM MIxAxIM requested a review from a team as a code owner February 5, 2025 16:21
@Vardominator Vardominator merged commit 0ef9947 into maestro-org:main Feb 5, 2025
1 check passed
@Vardominator
Copy link
Contributor

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.

EvaluateTx function returns an empty slice due to JSON field tags mismatch

2 participants