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

implement transaction call #60

Open
krisbitney opened this issue Mar 18, 2023 · 4 comments
Open

implement transaction call #60

krisbitney opened this issue Mar 18, 2023 · 4 comments

Comments

@krisbitney
Copy link
Contributor

based on https://docs.ethers.org/v5/api/providers/provider/#Provider-call

This allows users to get the return value from a transaction, rather than just a transaction hash

@dOrgJelli
Copy link
Contributor

@krisbitney
Copy link
Contributor Author

Isn't that what callContractStatic is used for?

https://github.com/polywrap/ethereum/blob/36e6f3331264732e73f3e236004416e82930ed64/wrapper/src/schema.graphql#L143-L149

Yes, but call has a different signature:

provider.call(tx)

@dOrgJelli
Copy link
Contributor

Ah okay, so if I'm understanding correctly, the method you're looking to add to the ethereum wrapper would be something like:

callStatic(
  tx: TxRequest!
  connection: Connection
): StaticTxResponse!

?

@krisbitney
Copy link
Contributor Author

Yes, exactly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants