Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Difficulty debugging freeze on Plutus.Contract.currentTime #3669

Closed
1 of 4 tasks
emiflake opened this issue Aug 2, 2021 · 1 comment · Fixed by #3673
Closed
1 of 4 tasks

Difficulty debugging freeze on Plutus.Contract.currentTime #3669

emiflake opened this issue Aug 2, 2021 · 1 comment · Fixed by #3673
Assignees
Labels

Comments

@emiflake
Copy link

emiflake commented Aug 2, 2021

Area

  • Plutus Foundation Related to the GHC plugin, Haskell-to-Plutus compiler, on-chain code
  • Plutus Application Framework Related to the Plutus application backend (PAB), emulator, Plutus libraries
  • Marlowe Related to Marlowe
  • Other Any other topic (Playgrounds, etc.)

Summary

Plutus.Contract.currentTime doesn't seem to yield. Locks up forever. Maybe I'm using it wrong? Note that currentSlot doesn't exhibit this behavior, it succesfully returns a slot.

Steps to reproduce

Call currentTime in any contract.

contract :: forall eff. Contract () eff ContractError ()
contract =
  logInfo =<< currentTime

Here's a gist that reproduces it fully

Expected behavior

We should get a POSIXTime returned, and it should log it out.

Actual behavior

It locks up indefinitely.

System info (please complete the following information):

  • OS: NixOS 21.05
  • Plutus commit: a937480
@emiflake emiflake added the bug label Aug 2, 2021
@luigy luigy self-assigned this Aug 2, 2021
luigy added a commit that referenced this issue Aug 2, 2021
@luigy
Copy link
Contributor

luigy commented Aug 2, 2021

Thanks for the gist I was able to also repro on a more recent master a2ce648 and put up a fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants