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

Differentiated read and write functions for gas less and normal transactions #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Swag19602
Copy link

@kallolborah can you please review this? And tell me about further steps?

Copy link
Collaborator

@Mohzcrea8me Mohzcrea8me left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Swag19602 this is fine if all readFunctions starts with "get" but wouldn't work for read functions that don't start with get for examples Erc20 read functions: name, symbol, decimals, totalSupply e.t.c

Changes:

  1. use the contract abi to get the state of each function and determine if it's a read or write function
  2. You can edit the read function testcase from : src/test/readFunctions.spec.ts to include more read functions that does not start with get to test.

@Mohzcrea8me Mohzcrea8me added the enhancement New feature or request label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants