Skip to content

Commit

Permalink
fix recursive mutex in From<&Transaction> for RpcTransaction
Browse files Browse the repository at this point in the history
  • Loading branch information
aspect committed Sep 7, 2024
1 parent 1b13f5d commit 3228c93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rpc/core/src/wasm/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ cfg_if::cfg_if! {
subnetwork_id: inner.subnetwork_id.clone(),
gas: inner.gas,
payload: inner.payload.clone(),
mass: tx.get_mass(),
mass: inner.mass,
verbose_data: None,
}
}
Expand Down
4 changes: 2 additions & 2 deletions rpc/core/src/wasm/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1454,8 +1454,8 @@ try_from! ( args: ISubmitTransactionRequest, SubmitTransactionRequest, {
} else {
let tx = Transaction::try_cast_from(&transaction)?;
SubmitTransactionRequest {
transaction : tx.as_ref().into(),
allow_orphan,
transaction : tx.as_ref().into(),
allow_orphan,
}
};
Ok(request)
Expand Down

0 comments on commit 3228c93

Please sign in to comment.