coinbase / mesh-geth-sdk

go-ethereum based sdk for Mesh API
https://docs.cdp.coinbase.com/mesh/docs/getting-started/
Apache License 2.0
28 stars 29 forks source link

Make the contract call encoding utility method public #99

Closed jiangchuan-he-cb closed 1 year ago

jiangchuan-he-cb commented 1 year ago

Motivation

We want to make this utility method constructContractCallDataGeneric public so that it can be used by other EVM compatible Rosetta nodes for encoding contract call inputs.

Additional reason we're doing this rather than directly using the evm client offered by this repo is that we're not ready to make change in these existing Rosetta nodes to start using this client which is an major effort. So we decide to just reuse some of the utility methods to mitigate duplicate code problem.

Solution

We simply make this internal utility method public.

Test

Open questions

N/A