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

EcPairingCheck Bug in PyTeal Version 0.26 - Expected uint64, Returns bytes #716

Closed
mangoplane opened this issue Jan 4, 2024 · 2 comments · Fixed by #717
Closed

EcPairingCheck Bug in PyTeal Version 0.26 - Expected uint64, Returns bytes #716

mangoplane opened this issue Jan 4, 2024 · 2 comments · Fixed by #717
Assignees
Labels
new-bug Bug report that needs triage

Comments

@mangoplane
Copy link

Subject of the issue

EcPairingCheck Bug in PyTeal Version 0.26

Your environment

  • PyTeal version: 0.26
  • Algod version: Latest algorand/algod:stable docker image
  • Operating System: Windows 11

Steps to reproduce

  1. Use EcPairingCheck in a PyTeal program
  2. Observe the type of value returned by EcPairingCheck

Expected behaviour

EcPairingCheck should return a boolean value (0 or 1) as a uint64 type.

Actual behaviour

The implementation returns an EcPairingCheck expression of type bytes. The underlying AVM opcode it wraps returns a value of type uint64, which it must reflect.

@mangoplane mangoplane added the new-bug Bug report that needs triage label Jan 4, 2024
@jasonpaulos
Copy link
Contributor

Thank you for the report, I can confirm this is a bug

@jasonpaulos
Copy link
Contributor

A fix for this has been released in v0.26.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-bug Bug report that needs triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants