Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
0o-de-lally committed Nov 28, 2024
1 parent decc944 commit 140a06a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/json_rescue_v5_extract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,13 @@ pub fn extract_v5_json_rescue(

pub fn decode_transaction_args(wtx: &mut WarehouseTxMaster, tx_bytes: &[u8]) -> Result<()> {
// test we can bcs decode to the transaction object
let t: TransactionV5 = bcs::from_bytes(tx_bytes).map_err(anyhow!(
"could not bcs decode tx_bytes, for function: {}",
wtx.function
))?;
let t: TransactionV5 = bcs::from_bytes(tx_bytes).map_err(|err| {
anyhow!(
"could not bcs decode tx_bytes, for function: {}, msg: {:?}",
wtx.function,
err
)
})?;

if let TransactionV5::UserTransaction(u) = &t {
if let TransactionPayload::ScriptFunction(_) = &u.raw_txn.payload {
Expand Down

0 comments on commit 140a06a

Please sign in to comment.