Skip to content

Commit ae01c00

Browse files
committed
chore: merge conflicts
1 parent 0d47a09 commit ae01c00

File tree

4 files changed

+23
-11
lines changed

4 files changed

+23
-11
lines changed

crates/algokit_utils/src/applications/app_client/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub use types::{
2424
AppClientBareCallParams, AppClientJsonParams, AppClientMethodCallParams, AppClientParams,
2525
AppSourceMaps, CompilationParams, FundAppAccountParams,
2626
};
27-
pub use utils::transform_tx_error;
27+
pub use utils::transform_transaction_error;
2828

2929
/// A client for interacting with an Algorand smart contract application (ARC-56 focused).
3030
pub struct AppClient {

crates/algokit_utils/src/applications/app_factory/sender.rs

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ impl<'a> TransactionSender<'a> {
9999
.send()
100100
.app_create_method_call(create_params, send_params)
101101
.await
102-
.map_err(|e| super::utils::transform_tx_error_for_factory(self.factory, e, false))?;
102+
.map_err(|e| {
103+
super::utils::transform_transaction_error_for_factory(self.factory, e, false)
104+
})?;
103105

104106
let app_client = AppClient::new(AppClientParams {
105107
app_id: Some(result.app_id),
@@ -159,7 +161,9 @@ impl<'a> TransactionSender<'a> {
159161
.send()
160162
.app_update_method_call(update_params, send_params)
161163
.await
162-
.map_err(|e| super::utils::transform_tx_error_for_factory(self.factory, e, false))
164+
.map_err(|e| {
165+
super::utils::transform_transaction_error_for_factory(self.factory, e, false)
166+
})
163167
}
164168

165169
/// Send an app delete via method call
@@ -197,7 +201,9 @@ impl<'a> TransactionSender<'a> {
197201
.send()
198202
.app_delete_method_call(delete_params, send_params)
199203
.await
200-
.map_err(|e| super::utils::transform_tx_error_for_factory(self.factory, e, true))
204+
.map_err(|e| {
205+
super::utils::transform_transaction_error_for_factory(self.factory, e, true)
206+
})
201207
}
202208
}
203209

@@ -266,7 +272,9 @@ impl BareTransactionSender<'_> {
266272
.send()
267273
.app_create(create_params, send_params)
268274
.await
269-
.map_err(|e| super::utils::transform_tx_error_for_factory(self.factory, e, false))?;
275+
.map_err(|e| {
276+
super::utils::transform_transaction_error_for_factory(self.factory, e, false)
277+
})?;
270278

271279
let app_client = AppClient::new(AppClientParams {
272280
app_id: Some(result.app_id),
@@ -320,7 +328,9 @@ impl BareTransactionSender<'_> {
320328
.send()
321329
.app_update(update_params, send_params)
322330
.await
323-
.map_err(|e| super::utils::transform_tx_error_for_factory(self.factory, e, false))
331+
.map_err(|e| {
332+
super::utils::transform_transaction_error_for_factory(self.factory, e, false)
333+
})
324334
}
325335

326336
/// Send an app delete (bare)
@@ -352,6 +362,8 @@ impl BareTransactionSender<'_> {
352362
.send()
353363
.app_delete(delete_params, send_params)
354364
.await
355-
.map_err(|e| super::utils::transform_tx_error_for_factory(self.factory, e, true))
365+
.map_err(|e| {
366+
super::utils::transform_transaction_error_for_factory(self.factory, e, true)
367+
})
356368
}
357369
}

crates/algokit_utils/src/applications/app_factory/utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ pub(crate) fn merge_create_args_with_defaults(
7171
}
7272

7373
/// Transform a transaction error using AppClient logic error exposure for factory flows.
74-
pub(crate) fn transform_tx_error_for_factory(
74+
pub(crate) fn transform_transaction_error_for_factory(
7575
factory: &AppFactory,
7676
err: crate::transactions::TransactionSenderError,
7777
is_clear: bool,
@@ -86,5 +86,5 @@ pub(crate) fn transform_tx_error_for_factory(
8686
source_maps: None,
8787
},
8888
);
89-
crate::applications::app_client::transform_tx_error(&client, err, is_clear)
89+
crate::applications::app_client::transform_transaction_error(&client, err, is_clear)
9090
}

crates/algokit_utils/tests/applications/app_factory.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ async fn deploy_app_update_detects_extra_pages_as_breaking_change(
552552
Some(t)
553553
},
554554
updatable: Some(true),
555-
deletable: Some(true),
555+
deletable: None,
556556
source_maps: None,
557557
});
558558

@@ -583,7 +583,7 @@ async fn deploy_app_update_detects_extra_pages_as_breaking_change(
583583
t.insert("VALUE".to_string(), TealTemplateValue::Int(2));
584584
Some(t)
585585
},
586-
updatable: None,
586+
updatable: Some(true),
587587
deletable: None,
588588
source_maps: None,
589589
});

0 commit comments

Comments
 (0)