This repository has been archived by the owner on Feb 9, 2024. It is now read-only.
Decoding error & not correct decoding of returned types containing i16. #105
Labels
bug
Something isn't working
Bug Report
I have found that use.ink and the contracts-ui.substrate.io have problems decoding returned values from contracts containing i16 type.
To reproduce please check: https://github.com/Nradko/i16_issue
Current Behavior
case1
For the storage:
the returned value for getI16Tuples is:
the returned value for getI16Pairs is:
case2
For the storage:
the returned value for
getI16Tuples
is:Decoding error
the returned value for
getI16Pairs
is:Decoding error
Expected Behavior
case1
the returned value for
getI16Tuples
is:the returned value for
getI16Pairs
is:case2
the returned value for
getI16Tuples
is:the returned value for
getI16Pairs
is:Steps To Reproduce
cargo contract build
case1
pushI16
with argsvalue1: 1, value2: -1
case2
pushI16
with argsvalue1: 0, value2: -0
Environment
Additional Information
https://github.com/Nradko/i16_issue
The text was updated successfully, but these errors were encountered: