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

Add Boolean.toByte #764

Closed
SethDusek opened this issue Sep 17, 2024 · 1 comment
Closed

Add Boolean.toByte #764

SethDusek opened this issue Sep 17, 2024 · 1 comment
Assignees
Labels
6.0 Functionality needed for Ergo v6.0 (interpreter v3)

Comments

@SethDusek
Copy link
Collaborator

SethDusek commented Sep 17, 2024

Add a method (.toByte) to Boolean in ergotree-interpreter

  • Add .toByte method to Boolean (convert true to 1, false to 0)
  • Make .toByte only activate when activated version is > 3
  • Implement tests for .toByte, along with versioning tests (scripts that use .toByte should fail if activated version is <= 3)

Reference PR: ergoplatform/sigmastate-interpreter#940
Reference Issue: ergoplatform/sigmastate-interpreter#931

@SethDusek SethDusek added the 6.0 Functionality needed for Ergo v6.0 (interpreter v3) label Sep 17, 2024
@SethDusek SethDusek self-assigned this Sep 17, 2024
@kushti
Copy link
Member

kushti commented Sep 20, 2024

Likely will not be included in 6.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.0 Functionality needed for Ergo v6.0 (interpreter v3)
Projects
None yet
Development

No branches or pull requests

2 participants