You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm filing this here, as it's somehow cross-package (Swagger-Api, evm-/ethconnect, firefly-signer). Please relocate as you see fit (probably firefly-signer)...
** Current behavior: **
The Swagger-Api fails to return tuples of state variables, requested by contract GETter-functions. The RLP-decoding of the data to return fails/is incomplete.
For (1) -ethconnect: Create a new FF-stack with --blockchain-connector ethconnect
(2) -evmconnect: Create a new FF-stack with --blockchain-connector evmconnect
For both: deploy the attached SmaCo "DynStructArraysAndAbiTuples.sol" on FF,
define contract interface/ABI, register API (via Sandbox...). The contracts Constructor
will create some data for it's state-variables DynStructArraysAndAbiTuples.sol.txt
...
As reference, deploy the said SmaCo with Remix Desktop-IDE (i used v.0.30.1), and connect it
to the geth-node of the respective FF-stack:
Remix-IDE-> "Environment",
-> select 'External HTTP-Provider'-> with
-> "External HTTP Provider Endpoint" =
-> 'http://127.0.0.1:5100'
Test the following SmaCo-functions (POST/query-endpoints in the FF-Swagger-Interface)
getDatingsLength
getAllDatings
getAllDatingEfforts
getDatingByAttempt
getAliceEffortByValue
Do the same tests in the Remix-IDE, for comparison and reference.
See the differences/errors, as documented as well in the attached pdf-document
"FF-Tuples-AbiRlp-Decode-Tests.pdf"
** Related code: **
The error-messages 'FF23023'(MsgReturnDataInvalid) from firefly-evmconnect,
'FF22046'(MsgABIArrayCountTooLarge) from firefly-signer
Hi @nguyer, is there any chance this getting corrected? There was a fix for a RLP-problem - #1323 - that looked similar. Could you please crosscheck, whether my problems are solved w/ this fix, and if not, add the correction for those? There is a complete test-case included here - pls use. These kind of bug(s) just invalidate a whole bunch of Solidity-standards to be used, see?
I'm filing this here, as it's somehow cross-package (Swagger-Api, evm-/ethconnect, firefly-signer). Please relocate as you see fit (probably firefly-signer)...
FireFly - Issue-/Bug-Report
** FireFly-version ***
(1) "1.1.2" w/ ethconnect
(2) "1.2.0" w/ evmconnect,
** Current behavior: **
The Swagger-Api fails to return tuples of state variables, requested by contract GETter-functions. The RLP-decoding of the data to return fails/is incomplete.
** Expected behavior: **
Return correctly decoded Tuple-data in FF-Swagger Json-Response
** Steps to reproduce: **
For (1) -ethconnect: Create a new FF-stack with --blockchain-connector ethconnect
(2) -evmconnect: Create a new FF-stack with --blockchain-connector evmconnect
For both: deploy the attached SmaCo "DynStructArraysAndAbiTuples.sol" on FF,
define contract interface/ABI, register API (via Sandbox...). The contracts Constructor
will create some data for it's state-variables
DynStructArraysAndAbiTuples.sol.txt
...
As reference, deploy the said SmaCo with Remix Desktop-IDE (i used v.0.30.1), and connect it
to the geth-node of the respective FF-stack:
Remix-IDE-> "Environment",
-> select 'External HTTP-Provider'-> with
-> "External HTTP Provider Endpoint" =
-> 'http://127.0.0.1:5100'
Test the following SmaCo-functions (POST/query-endpoints in the FF-Swagger-Interface)
Do the same tests in the Remix-IDE, for comparison and reference.
See the differences/errors, as documented as well in the attached pdf-document
"FF-Tuples-AbiRlp-Decode-Tests.pdf"
FF-Tuples-AbiRlp-Decode-Tests.pdf
** Related code: **
The error-messages 'FF23023'(MsgReturnDataInvalid) from firefly-evmconnect,
'FF22046'(MsgABIArrayCountTooLarge) from firefly-signer
** Other information: **
Reference-tested as well with 'https://github.com/esaulpaugh/headlong-cli' + '~/headlong',
a library aiming to be just 'strict' in RLP-en-/decoding. See it's (correct) results in the
attached pdf-document.
The text was updated successfully, but these errors were encountered: