aleeusgr / potential-robot

minimal dApp testing suite
MIT License
3 stars 2 forks source link

Error: TypeError on line 7: expected 2 args for main #108

Closed aleeusgr closed 1 year ago

aleeusgr commented 1 year ago
 FAIL  tests/helios-vesting-lock.test.ts > a vesting contract lockAda transaction > tests lockAda tx import            
Error: TypeError on line 7: expected 2 args for main                                                                   
 ❯ Function.new node_modules/@hyperionbt/helios/helios.js:1421:10                                                      
 ❯ Function.typeError node_modules/@hyperionbt/helios/helios.js:1463:30                                                
 ❯ Site.typeError node_modules/@hyperionbt/helios/helios.js:1338:20                                                    
 ❯ FuncStatement.typeError node_modules/@hyperionbt/helios/helios.js:1735:21                                           
 ❯ MintingProgram.evalTypesInternal node_modules/@hyperionbt/helios/helios.js:36832:15                                 
 ❯ MintingProgram.evalTypes node_modules/@hyperionbt/helios/helios.js:37134:15                                         
 ❯ Function.new node_modules/@hyperionbt/helios/helios.js:36016:28                                                     
 ❯ Module.lockAda src/lockAda.ts:46:56                                                                                 
     46|  tx.addInputs(inputUtxos);                                                                                    
     47|                                                                                                               
     48|  const mintScript =`minting nft     

Originally posted by @aleeusgr in https://github.com/aleeusgr/potential-robot/issues/107#issuecomment-1565237457

aleeusgr commented 1 year ago

https://github.com/aleeusgr/potential-robot/blob/26725b1e09f283ec6bd008fcd5da96d26d7fb03a/src/lockAda.ts#L48-L70

aleeusgr commented 1 year ago

https://www.hyperion-bt.org/helios-book/advanced-concepts/minting/index.html#minting-policies