Fix remaining blueprint test.

Probably an oversight when we reworked them.
This commit is contained in:
KtorZ 2024-08-24 11:18:40 +02:00
parent 442010d056
commit ed55f03aa2
No known key found for this signature in database
GPG Key ID: 33173CB6F77F4277
2 changed files with 13 additions and 3 deletions

View File

@ -1,9 +1,15 @@
---
source: crates/aiken-project/src/blueprint/validator.rs
description: "Code:\n\ntype Dict<key, value> {\n inner: List<Pair<ByteArray, value>>\n}\n\ntype UUID { UUID }\n\nvalidator {\n fn list_pairs_as_map(redeemer: Dict<UUID, Int>, ctx: Void) {\n True\n }\n}\n"
description: "Code:\n\npub type Dict<key, value> {\n inner: List<Pair<ByteArray, value>>\n}\n\npub type UUID { UUID }\n\nvalidator list_pairs_as_map {\n spend(datum: Option<Data>, redeemer: Dict<UUID, Int>, _output_reference: Data, transaction: Data) {\n True\n }\n}\n"
---
{
"title": "test_module.list_pairs_as_map",
"title": "test_module.list_pairs_as_map_spend",
"datum": {
"title": "datum",
"schema": {
"$ref": "#/definitions/Data"
}
},
"redeemer": {
"title": "redeemer",
"schema": {
@ -16,6 +22,10 @@ description: "Code:\n\ntype Dict<key, value> {\n inner: List<Pair<ByteArray,
"ByteArray": {
"dataType": "bytes"
},
"Data": {
"title": "Data",
"description": "Any Plutus data."
},
"Int": {
"dataType": "integer"
},

View File

@ -576,7 +576,7 @@ mod tests {
pub type UUID { UUID }
validator list_pairs_as_map {
spend(datum: Option<Data>, redeemer: Dict<UUID, Int>, ctx: Void) {
spend(datum: Option<Data>, redeemer: Dict<UUID, Int>, _output_reference: Data, transaction: Data) {
True
}
}