-
Notifications
You must be signed in to change notification settings - Fork 349
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
Unexpected values received for types i8 and i16 from ink! contract #5483
Comments
@statictype @DoubleOTheven Any idea? |
Hey @sharma66mahesh, would you please share the metadata for that contract? I would try updating polkadotjs to the latest version in the mean time |
@DoubleOTheven Here is the link to the compiled contract: |
@sharma66mahesh Thanks for sharing
{
"myIntStruct": {
"myI16": "-32,769"
"myI8": "-129"
// ... omitted
}
// ...omitted
} It looks like |
Closing on the back of #5506 which seems like it would be the root cause. Comments to "still an issue on latest" would re-open. |
still an issue on latest |
#5702 addresses the root causes (tracing back to the common repo). |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query. |
Upon uploading this ink! contract, I was expecting to receive the values of the variables
my_i8
andmy_i16
to be127
and32767
as it was set in the ink! contract respectively.However, I received
-129
and-32769
as the values formy_i8
andmy_i16
respectively.The following is the output of querying the contract's
get
method:What is the motivation for changing the behavior?
Please tell us about your environment:
Version: polkadot-v0.9.36, @polkadot-js/api v9.13.6, @polkadot-js/api-contract v9.13.6
Environment:
Language:
The text was updated successfully, but these errors were encountered: