@typemove/sui 1.5.6 → 1.5.7-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -146,7 +146,7 @@ export class SuiCodegen extends AbstractCodegen<
146
146
  }
147
147
 
148
148
  protected generateViewFunction(module: InternalMoveModule, func: InternalMoveFunction): string {
149
- if (func.visibility !== InternalMoveFunctionVisibility.PUBLIC) {
149
+ if (func.visibility === InternalMoveFunctionVisibility.PRIVATE) {
150
150
  return ''
151
151
  }
152
152
  const genericString = this.generateFunctionTypeParameters(func)
@@ -178,7 +178,7 @@ export class SuiCodegen extends AbstractCodegen<
178
178
  }
179
179
 
180
180
  protected generateBuilderForFunction(module: InternalMoveModule, func: InternalMoveFunction): string {
181
- if (func.visibility !== InternalMoveFunctionVisibility.PUBLIC && func.isEntry !== true) {
181
+ if (func.visibility === InternalMoveFunctionVisibility.PRIVATE && func.isEntry !== true) {
182
182
  return ''
183
183
  }
184
184