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

ContractFunctionParameter uint256 not taking input of decimal more than 20 #1640

Closed
0xAnon0602 opened this issue Jun 7, 2023 · 4 comments · Fixed by #1647
Closed

ContractFunctionParameter uint256 not taking input of decimal more than 20 #1640

0xAnon0602 opened this issue Jun 7, 2023 · 4 comments · Fixed by #1647
Assignees
Labels
bug Something isn't working
Milestone

Comments

@0xAnon0602
Copy link

0xAnon0602 commented Jun 7, 2023

Description

Description

I am using hedera SDK to write a function of already deployed Contract function which takes two uint256 parameter as input .

When I am calling the function using below code
image

I am getting this error
image
image

It works fine if the contract parameter input is limited till 20 decimal but it doesn't work for more than 20.

Steps to reproduce

To produce this error you can call any contract function using hedera-sdk which takes input as uint256 and give it value more than 20 decimal places

Additional context

No response

Hedera network

mainnet, testnet, previewnet

Version

2.18.1

Operating system

macOS

@0xAnon0602
Copy link
Author

0xAnon0602 commented Jun 20, 2023

@ochikov How can I test this merged request ?

@ochikov
Copy link
Contributor

ochikov commented Jun 20, 2023

@0xAnon0602 There are 91 integration tests that are performed with this request. We are going to release a new version today and it will be included in the release. After that you will be able to test it.

@ochikov
Copy link
Contributor

ochikov commented Jun 20, 2023

@0xAnon0602 latest version 2.27.0 is released.

@0xAnon0602
Copy link
Author

@ochikov Works perfectly now.
Thanks a lot , closing this issue now :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants