Skip to content

Commit

Permalink
fix: redundant copy
Browse files Browse the repository at this point in the history
  • Loading branch information
gostkin committed Jan 30, 2024
1 parent b666808 commit 142c72d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions indexer/tasks/src/multiera/dex/wingriders_v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ impl Dex for WingRidersV1 {
.iter()
.find(|&r| r.index as i64 == pool_input)
.ok_or("Failed to find main redeemer")?;
let redeemer = redeemer.data.clone();
let redeemer = datum_to_json(&redeemer)?;
let redeemer = datum_to_json(&redeemer.data)?;

// Extract input list from redemeer
let redeemer_map: Vec<usize> = redeemer["fields"][2]["list"]
Expand Down

0 comments on commit 142c72d

Please sign in to comment.