mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-23 22:15:44 +00:00
blackified
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
This commit is contained in:
parent
f5d8a2cac9
commit
704ea4618e
@ -160,7 +160,7 @@ class Validator:
|
||||
self.validate_compose_inputs(transaction, current_transactions)
|
||||
|
||||
return transaction
|
||||
|
||||
|
||||
def validate_script(self, transaction: Transaction) -> bool:
|
||||
if transaction.script:
|
||||
return transaction.script.validate()
|
||||
|
||||
@ -30,6 +30,7 @@ metadata = {"units": 300, "type": "KG"}
|
||||
|
||||
SCRIPT_OUTPUTS = ["ok"]
|
||||
|
||||
|
||||
def test_zenroom_validation(b):
|
||||
biolabs = generate_key_pair()
|
||||
version = "3.0"
|
||||
@ -38,10 +39,7 @@ def test_zenroom_validation(b):
|
||||
|
||||
output = {
|
||||
"amount": "10",
|
||||
"condition": {
|
||||
"details": _fulfillment_to_details(ed25519),
|
||||
"uri": ed25519.condition_uri
|
||||
},
|
||||
"condition": {"details": _fulfillment_to_details(ed25519), "uri": ed25519.condition_uri},
|
||||
"public_keys": [
|
||||
biolabs.public_key,
|
||||
],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user