-
Notifications
You must be signed in to change notification settings - Fork 21
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
Incorrect compilation for runtime.script_container.hash #1273
Labels
bug
Something isn't working
Comments
The workaround is: container = runtime.script_container
h = container.hash
isValid = crypto.verify_with_ecdsa(h, user_public_key, signature, crypto.NamedCurve.SECP256R1)
|
By the way, h = runtime.script_container.hash gives an error:
In neo3-boa/boa3/internal/analyser/moduleanalyser.py Lines 1437 to 1444 in 58d33fd
attribute_symbol remains None , while the type of value is not judged (should be Transaction ).
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
is used to load runtime.script_container.hash into the evaluation stack, which seems incorrect.
How to Reproduce
Contract
abstract_account.py
:neo-fairy-test:
Compiled .nef assembly:
Here
runtime.script_container.hash
is compiled as:And the exception is:
Expected behavior
Smooth invocation
Screenshots
Platform:
The text was updated successfully, but these errors were encountered: