aleeusgr / potential-robot

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

omitting the `validTo` and `validFrom` calls, and then "initialize" the NetworkParams #111

Closed aleeusgr closed 1 year ago

aleeusgr commented 1 year ago
          > Have you tried omitting the `validTo` and `validFrom` calls, and then "initialize" the NetworkParams for emulator use? https://www.hyperion-bt.org/helios-book/api/reference/networkemulator.html#initnetworkparams

Currently the emulator starts at 0, and it's very hard to get it to correspond to real time

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

aleeusgr commented 1 year ago
Error: Trace: line 352 of IR                                                                                           
RuntimeError on line 53 of IR: transaction rejected                                                                    
 ❯ RuntimeError.addTrace node_modules/@hyperionbt/helios/helios.js:1636:10                                             
 ❯ RuntimeError.addTraceSite node_modules/@hyperionbt/helios/helios.js:1646:16                                         
 ❯ UplcAnon.call node_modules/@hyperionbt/helios/helios.js:10450:12                                                    
 ❯ UplcProgram.runInternal node_modules/@hyperionbt/helios/helios.js:12842:15                                          
 ❯ UplcProgram.run node_modules/@hyperionbt/helios/helios.js:12883:11                                                  
 ❯ UplcProgram.profile node_modules/@hyperionbt/helios/helios.js:12997:16                                              
 ❯ TxWitnesses.executeRedeemer node_modules/@hyperionbt/helios/helios.js:39762:22                                      
 ❯ TxWitnesses.executeRedeemers node_modules/@hyperionbt/helios/helios.js:39884:17                                     
 ❯ TxWitnesses.executeScripts node_modules/@hyperionbt/helios/helios.js:39810:3
 ❯ Tx.executeRedeemers node_modules/@hyperionbt/helios/helios.js:38208:3
aleeusgr commented 1 year ago

https://github.com/aleeusgr/potential-robot/blob/3bfac82ac30568154fdaca334aefd697fb1e5a2a/tests/helios-vesting-cancel.test.ts#L141

this line has no effect

aleeusgr commented 1 year ago

https://github.com/aleeusgr/potential-robot/blob/3bfac82ac30568154fdaca334aefd697fb1e5a2a/tests/helios-vesting-cancel.test.ts#L126-L127 commenting any of these lines leads to

Error: Trace: line 16                                                                                                  
Trace: line 157 of IR in '__helios__common__field_0'                                                                   
Trace: line 163 of IR in '__core__headList'                                                                            
RuntimeError on line 163 of IR: empty list