Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
fix decorators style
Browse files Browse the repository at this point in the history
  • Loading branch information
cicr99 committed Mar 20, 2023
1 parent b9c46b9 commit 6e0651d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cairoWriter/writers/cairoFunctionDefinitionWriter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ export class CairoFunctionDefinitionWriter extends CairoASTNodeWriter {
if (node.kind === FunctionKind.Constructor) return ['#[constructor]'];
const decorators: string[] = [];
if (node.kind === FunctionKind.Fallback) {
decorators.push('@raw_input');
if (node.vParameters.vParameters.length > 0) decorators.push('@raw_output');
decorators.push('#[raw_input]');
if (node.vParameters.vParameters.length > 0) decorators.push('#[raw_output]');
}

if (node.visibility === FunctionVisibility.External) {
Expand Down

0 comments on commit 6e0651d

Please sign in to comment.