Skip to content

Conversation

@OlufemiAdeOlusile
Copy link
Collaborator

test_mint_build.py

"v2": 1893,
"v3": 6,
}
expected_size = expected_sizes.get(plutus_version)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

expected_size = expected_sizes[plutus_version] will print meaningful error when the key is missing, and you don't need to add the assert in next line.

expected_costs=[script_expected_fee["cost"]],
)

ref_size_data = cluster.g_query.get_ref_script_size(utxo=reference_utxo)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ref_size = cluster.g_query.get_ref_script_size(utxo=reference_utxo)["refInputScriptSize"] will print meaningful error when the key is missing, and you don't need to add the assert.

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.

3 participants