Skip to content

Commit

Permalink
Update packages/common/src/codegen/render-solidity/renderTypeHelpers.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
alvrs committed Sep 25, 2023
1 parent 94a7c79 commit c512f40
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function renderWrapperStaticArray(
${elementType}[${staticLength}] memory _result
) {
if (_value.length < ${staticLength}) {
// ignore invalid dynamic arrays that are too small
// return an uninitialized array if the length is smaller than the fixed length to avoid memory corruption
return _result;
} else {
// in memory static arrays are just dynamic arrays without the length byte
Expand Down

0 comments on commit c512f40

Please sign in to comment.