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 c6b8334 commit b629788Copy full SHA for b629788
crates/sdk/src/tx.rs
@@ -277,8 +277,12 @@ pub async fn process_tx(
277
// We use this to determine when the wrapper tx makes it on-chain
278
let tx_hash = tx.header_hash().to_string();
279
let cmts = tx.commitments().clone();
280
- // FIXME: add a check to avoid submitting raw txs? Yes
281
let wrapper_hash = tx.wrapper_hash();
+ if wrapper_hash.is_none() {
282
+ return Err(Error::Other(
283
+ "Can't submit a non-wrapper transaction".to_string(),
284
+ ));
285
+ }
286
// We use this to determine when the inner tx makes it
287
// on-chain
288
let to_broadcast = TxBroadcastData::Live { tx, tx_hash };
0 commit comments