Skip to content

Commit

Permalink
move dto.outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-martinez committed Jan 10, 2024
1 parent 0a82996 commit 1fb3f0f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -593,15 +593,14 @@ pub(crate) mod dto {
.network_id
.parse::<u64>()
.map_err(|_| Error::InvalidField("network_id"))?;
let outputs = dto.outputs;

let mut builder = Self::builder(network_id)
.with_creation_slot(dto.creation_slot)
.with_context_inputs(dto.context_inputs)
.with_inputs(dto.inputs)
.with_mana_allotments(dto.allotments)
.with_capabilities(dto.capabilities)
.with_outputs(outputs);
.with_outputs(dto.outputs);

builder = if let Some(p) = dto.payload {
if let PayloadDto::TaggedData(i) = p {
Expand Down

0 comments on commit 1fb3f0f

Please sign in to comment.