Skip to main content
4 events
when toggle format what by license comment
Aug 4, 2021 at 12:53 comment added vcwebco @marcel_g - contracts get activated within the context of a wallet, e.g in payTrace with code line h <- activateContractWallet (Wallet 1) payContract. That makes the endpoint(s) available for invocation, e.g. with callEndpoint @"pay" h $ PayParams. Note that activation is not global. The visual representation in the playground simulator shows wallets with the contract already activated (buttons), and with the ability to add more.
Aug 4, 2021 at 4:16 comment added marcel_g Thanks @vcwebco - that makes sense. When I am running the Emulator from the cmd line by calling payTest1: payTest1 :: IO () payTest1 = runEmulatorTraceIO $ payTrace 1000000 2000000 does the payContract fn keep running while it's blocked listening for the endpoint call in a separate thread even after payTrace returns? How does the Emulator know to stop listening for endpoint calls?
Aug 4, 2021 at 2:03 vote accept marcel_g
Aug 3, 2021 at 10:58 history answered vcwebco CC BY-SA 4.0