Vincent Brunet 1 year ago
parent
commit
d235d1f4f7
1 changed files with 3 additions and 3 deletions
  1. 3 3
      cli/src/rust_template.rs

+ 3 - 3
cli/src/rust_template.rs

@@ -477,10 +477,11 @@ describe("{}", () => {{
       entities: [{{
         entity: entityPda,
         components: [{{ componentId: positionComponent.programId }}],
-      }}]
-    }}, {{
+      }}],
+      args: {{
         x: 1,
         y: 1,
+      }}
     }});
     const txSign = await provider.sendAndConfirm(applySystem.transaction);
     console.log(`Applied a system. Signature: ${{txSign}}`);
@@ -491,7 +492,6 @@ describe("{}", () => {{
     );
     expect(positionAfter.x.toNumber()).to.gt(0);
   }});
-
 }});
 "#,
         name.to_upper_camel_case(),