Fix remaining blueprint test.
Probably an oversight when we reworked them.
This commit is contained in:
parent
442010d056
commit
ed55f03aa2
|
@ -1,9 +1,15 @@
|
||||||
---
|
---
|
||||||
source: crates/aiken-project/src/blueprint/validator.rs
|
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": {
|
"redeemer": {
|
||||||
"title": "redeemer",
|
"title": "redeemer",
|
||||||
"schema": {
|
"schema": {
|
||||||
|
@ -16,6 +22,10 @@ description: "Code:\n\ntype Dict<key, value> {\n inner: List<Pair<ByteArray,
|
||||||
"ByteArray": {
|
"ByteArray": {
|
||||||
"dataType": "bytes"
|
"dataType": "bytes"
|
||||||
},
|
},
|
||||||
|
"Data": {
|
||||||
|
"title": "Data",
|
||||||
|
"description": "Any Plutus data."
|
||||||
|
},
|
||||||
"Int": {
|
"Int": {
|
||||||
"dataType": "integer"
|
"dataType": "integer"
|
||||||
},
|
},
|
||||||
|
|
|
@ -576,7 +576,7 @@ mod tests {
|
||||||
pub type UUID { UUID }
|
pub type UUID { UUID }
|
||||||
|
|
||||||
validator list_pairs_as_map {
|
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
|
True
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue