We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c18c40b commit e4332ebCopy full SHA for e4332eb
core/market/src/matcher.rs
@@ -197,6 +197,18 @@ impl Matcher {
197
.await
198
.map_err(|e| MatcherError::GolemBaseOfferError(e.to_string()))?;*/
199
200
+ //save payload to file
201
+
202
+ let offer_to_str = serde_json::to_string(&offer).map_err(|e| {
203
+ MatcherError::GolemBaseOfferError(format!("Failed to serialize offer: {}", e))
204
+ })?;
205
+ fs::write("offer_base.json", offer_to_str).map_err(|e| {
206
+ MatcherError::GolemBaseOfferError(format!(
207
+ "Failed to write offer payload to file: {}",
208
+ e
209
+ ))
210
211
212
let random_bytes: [u8; 32] = rand::random();
213
let offer: Offer = Offer {
214
id: SubscriptionId::from_bytes(random_bytes),
0 commit comments