Skip to content
This repository has been archived by the owner on Sep 27, 2019. It is now read-only.

Calling cacheCall on a contract method which returns a struct gives an error - Web3 related #229

Closed
0xTimepunk opened this issue Jun 4, 2019 · 3 comments

Comments

@0xTimepunk
Copy link

Calling cacheCall on a contract method that should return a struct gives the following error:
Invalid solidity type: tuple at ABICoder._requireType (index.js:74) at eval (index.js:100)

Digging a bit, seems the issue is related to Web3 and was fixed in the 1.0.0-beta.36 release, as described in https://ethereum.stackexchange.com/questions/36229/invalid-solidity-type-tuple and https://github.com/ethereum/web3.js/issues/1241

Drizzle is using 1.0.0-beta.35.

It would be interesting to update web3 in Drizzle. In the meantime I will have to play a workaround in my solidity code to return parts of the struct.

Thanks

@0xTimepunk 0xTimepunk changed the title Calling cacheCall on a contract method which returns a struct Calling cacheCall on a contract method which returns a struct gives an error - Web3 related Jun 4, 2019
@cds-amal
Copy link
Member

cds-amal commented Jun 5, 2019

@J-Mars Apologies for the situation you're in. We had to pin to web3 1.0.0-beta.35 because of breaking changes in web3 and we're awaiting a resolution, (which is in the works)

@stale
Copy link

stale bot commented Aug 4, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale
Copy link

stale bot commented Aug 11, 2019

This issue has been closed, but can be re-opened if further comments indicate that the problem persists. Feel free to tag maintainers if there is no reply to further comments.

@stale stale bot closed this as completed Aug 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants