failing contract with long value #230
-
`from opshin.prelude import * @DataClass() def validator(datum: None, redeemer: None, context: ScriptContext) -> None: If we put While: it PASSES Does anyone have a clue why this is ? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 12 replies
-
You are not using the content hash in the contract at all, so I can not help you based on the provided code. Please show where in the contract the hash is being used. |
Beta Was this translation helpful? Give feedback.
-
Hi Niel, & then include it in the transaction:
That is all. |
Beta Was this translation helpful? Give feedback.
-
ok. Any examples for ogmios that we can use ? thanks.
…On Sat, Jul 22, 2023 at 3:44 AM Jerry ***@***.***> wrote:
I would suggest trying with Ogmios chain context and see if it gives more
info. Or raise a ticket to blockfrost with reproducible steps.
—
Reply to this email directly, view it on GitHub
<#230 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXPVZFTCK3HI5ZH2AXWA4D3XRMWAPANCNFSM6AAAAAA2QMB354>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
Hi @cffls, it seems that the error @reitcircles posted
'Namespace' object has no attribute 'result'
points to a problem with the parsing of the response in pycardano itself. Blockfrost Python SDK, in this case, only sends a POST request and converts the response JSON to python object.I think the problem with the error propagation from Blockfrost/Ogmios is that pycardano expects that
result
field is always present in the response. That is not correct assumption.https://github.com/Python-Cardano/pycardano/blob/main/pycardano/backend/blockfrost.py#L288
For example, when sending invalid CBOR to evaluateTx endpoint, the error returned from Ogmios has following format