Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Use EVM to replace eth_call for pure functions #1872

Closed
xianny opened this issue Jun 18, 2019 · 1 comment · Fixed by #2108
Closed

Use EVM to replace eth_call for pure functions #1872

xianny opened this issue Jun 18, 2019 · 1 comment · Fixed by #2108

Comments

@xianny
Copy link
Contributor

xianny commented Jun 18, 2019

Expected Behavior

Generated contract wrappers should reroute calls to pure Solidity functions to a native EVM implementation.

Current Behavior

Generated wrappers make an eth_call for every Solidity function called

Possible Solution

In abi-gen-templates, check if stateMutability === pure for each function and then reroute to an EVM if so.

@xianny xianny self-assigned this Jun 18, 2019
@feuGeneA feuGeneA changed the title [Multilang] use EVM to replace eth_call for pure functions Use EVM to replace eth_call for pure functions Jun 25, 2019
@stale
Copy link

stale bot commented Aug 2, 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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants