-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
Pair missing from plutus.json definition #970
Labels
waiting on response
Waiting on author to respond to comments
Comments
1 task
I am unable to reproduce this @SebastienGllmt? With the following code:
I end up with the following blueprint, which does contain a definition for {
"preamble": {
"title": "aiken-lang/scratchpad",
"description": "Aiken contracts for project 'aiken-lang/scratchpad'",
"version": "0.0.0",
"plutusVersion": "v2",
"compiler": {
"name": "Aiken",
"version": "v1.0.29-alpha+c52ba9c"
},
"license": "Apache-2.0"
},
"validators": [
{
"title": "scratchpad.foo",
"redeemer": {
"title": "redeemer",
"schema": {
"$ref": "#/definitions/scratchpad~1Action"
}
},
"compiledCode": "<redacted>",
"hash": "57689de1175e1f5de429ef7075211b7002a08c66034de7db5500ffb7"
}
],
"definitions": {
"ByteArray": {
"dataType": "bytes"
},
"Int": {
"dataType": "integer"
},
"Pair$Int_ByteArray": {
"title": "Pair",
"dataType": "#pair",
"left": {
"$ref": "#/definitions/Int"
},
"right": {
"$ref": "#/definitions/ByteArray"
}
},
"scratchpad/Action": {
"title": "Action",
"anyOf": [
{
"title": "PairTest",
"dataType": "constructor",
"index": 0,
"fields": [
{
"title": "val",
"$ref": "#/definitions/Pair$Int_ByteArray"
}
]
}
]
}
}
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What Git revision are you using?
aiken v1.0.29-alpha+16fb02e
What operating system are you using, and which version?
Describe what the problem is?
Given the following Aiken code
the following definition in
plutus.json
gets createdHowever, there is no definition entry for
#/definitions/Pair$Int_ByteArray
createdNote that this bug doesn't exist for
List
types orTuple
types. A properList
entry gets created. This issue seems to only affectPair
, and is probably because Pair is not mentioned in CIP57What should be the expected behavior?
Either generate an entry for
Pair
, or change the schema to something elseThe text was updated successfully, but these errors were encountered: