adjusted assets=None to assets=[{"data":None}] to avoid exeptions in the background service

Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
Jürgen Eckel 2023-01-12 10:30:04 +01:00
parent ca0496555c
commit c69167f4b0
No known key found for this signature in database

View File

@ -40,7 +40,7 @@ def generate_block(planet):
from transactions.common.crypto import generate_key_pair
alice = generate_key_pair()
tx = Create.generate([alice.public_key], [([alice.public_key], 1)], assets=None).sign([alice.private_key])
tx = Create.generate([alice.public_key], [([alice.public_key], 1)], assets=[{"data":None}]).sign([alice.private_key])
code, message = planet.write_transaction(tx, BROADCAST_TX_COMMIT)
assert code == 202