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
[NODE] ETHABIEncode: type json.Number cannot be converted to decimal.Decimal #8504
Comments
Hi @borisovdev , I notice you are trying to fetch an array in the returned json. For now, array is not a supported data type in Any Api. If you want to get multiple values through a request, can you try to make a request for a multi-variable response? please check more details about contract here and toml file here. Or you can make a request for a large response. Please check the contract here and toml file here. |
Hi, @QingyangKong, thanks for the reply. |
Hi @borisovdev , thank you for raising this. I will check if unint256[] is supported in version 1.1.1 and talk with the engineering team. |
Hi together! I have the exact same problem as you described OP. Your response @QingyangKong doesn't focus on the core of the problem, because even if we use Multi-Variable responses, the flexible data-structre (array) still can't be passed back to the smart contract, since it's not compatible. I guess there is no solution to this problem right now, am I right? |
@QingyangKong Hello. Have any updates? |
@QingyangKong Update from us: Number Deserialization works correctly on 1.4.1. Colleagues tell us that the failure was after 1.5 |
Description
When trying to convert an array of json.Number to decimal.Decimal using the pipeline task type "ethabiencode", to then pass the array decimal.Decimal as an argument to a fulfill function of type uint256[], an error occurs:
This error occurs both on floating point and integer numbers
Attaching a screenshot of the job error run from our Chainlink node
Archive with client-example.sol, jobspec.toml: chainlink-issue-ETHABIEncode-type-json.Number-cannot-be-converted-to-decimal.Decimal.zip
Environment
Steps to Reproduce
The text was updated successfully, but these errors were encountered: