We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Defining a ForeignHash in a contract doesn't take in account the default_value of the original Hash.
ForeignHash
default_value
Hash
To Reproduce Steps to reproduce the behavior:
tau_balances = ForeignHash(foreign_contract='currency', foreign_name='balances')
some_value = tau_balances["this does not exist"]
Expected behavior Variable some_value should be 0 since the original Hash was defined with default_value=0 but it's None
some_value
0
default_value=0
None
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Defining a
ForeignHash
in a contract doesn't take in account thedefault_value
of the originalHash
.To Reproduce
Steps to reproduce the behavior:
ForeignHash
. For example:Expected behavior
Variable
some_value
should be0
since the originalHash
was defined withdefault_value=0
but it'sNone
The text was updated successfully, but these errors were encountered: