Skip to content

Commit

Permalink
refactor(imt.sol): update variable assignment to optimize gas
Browse files Browse the repository at this point in the history
re #209
  • Loading branch information
vplasencia committed Mar 20, 2024
1 parent 0e4048d commit 464a4ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/imt.sol/contracts/internal/InternalLeanIMT.sol
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ library InternalLeanIMT {
}

// Update tree size
self.size += leaves.length;
self.size = treeSize + leaves.length;

// Update tree root
self.sideNodes[self.depth] = currentLevel[0];
Expand Down

0 comments on commit 464a4ae

Please sign in to comment.