fix: use 'or' operator instead of get() default for wallet provider fallback
Some checks failed
Cross-Node Transaction Testing / transaction-test (push) Has been cancelled
Deploy to Testnet / deploy-testnet (push) Has been cancelled
Integration Tests / test-service-integration (push) Has been cancelled
Multi-Node Stress Testing / stress-test (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled

- Changed bid_data provider from .get('wallet', 'unknown') to .get('wallet') or 'unknown'
- Ensures None values from get() are properly handled with fallback to 'unknown'
This commit is contained in:
aitbc
2026-05-19 11:44:36 +02:00
parent 00bd0e5e5e
commit c63bbbd861

View File

@@ -87,7 +87,7 @@ class MarketplaceService:
# Create a bid for the offer
bid_data = {
'provider': booking_data.get('wallet', 'unknown'),
'provider': booking_data.get('wallet') or 'unknown',
'capacity': booking_data.get('duration_hours', 1.0),
'price': booking_data.get('price', offer.price),
'status': 'pending',