Skip to content

Commit

Permalink
Change visibility of environment arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
huynhtrankhanh authored Sep 18, 2024
1 parent 2455b72 commit 59a980a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/solidityCodegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ contract GeneratedCode {
for (const [_, description] of mainModule.environment.arrays) {
const { itemTypes, length } = description
const structType = generateStructType(itemTypes)
joined += `${indent}${structType}[] public environment${index};\n`
joined += `${indent}${structType}[] private environment${index};\n`
constructorBody += `${indent}${indent}for (uint i = 0; i < ${length.raw}; i++) environment${index}.push(${structType}(${'0'.repeat(itemTypes.length).split('').join(', ')}));\n`
index++
}
Expand Down

0 comments on commit 59a980a

Please sign in to comment.