Skip to content

Commit

Permalink
fix: set chained references properly on exits
Browse files Browse the repository at this point in the history
  • Loading branch information
EndymionJkb committed Oct 18, 2023
1 parent b2801b7 commit a958b17
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ abstract contract VaultQueryActions is VaultActions {

// Save as chained references
for (uint256 i = 0; i < outputReferences.length; i++) {
_setChainedReferenceValue(outputReferences[i].key, amountsOut[i]);
_setChainedReferenceValue(outputReferences[i].key, amountsOut[outputReferences[i].index]);
}
}

Expand Down

0 comments on commit a958b17

Please sign in to comment.