Require payment for app deployment requests. #928

Merged
dboreham merged 13 commits from telackey/924 into main 2024-08-21 14:39:22 +00:00
Showing only changes of commit 09c9214e4c - Show all commits

View File

@ -110,10 +110,11 @@ def confirm_payment(laconic, record, payment_address, min_amount, logger):
)
return False
owner = laconic.get_owner(record)
if tx.sender != owner:
req_owner = laconic.get_owner(record)
if tx.sender != req_owner:
logger.log(
f"{record.id}: payment sender {tx.sender} in tx {tx.hash} does not match deployment request {owner}"
f"{record.id}: payment sender {tx.sender} in tx {tx.hash} does not match deployment "
f"request owner {req_owner}"
)
return False