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

bind.ContractTransactor/ethclient.SendTransactionConditional use a internal struct #2722

Open
RelicOfTesla opened this issue Sep 25, 2024 · 0 comments

Comments

@RelicOfTesla
Copy link

RelicOfTesla commented Sep 25, 2024

SendTransactionConditional(ctx context.Context, tx *types.Transaction, opts ethapi.TransactionOpts) error

"github.com/ethereum/go-ethereum/internal/ethapi"

func (ec *Client) SendTransactionConditional(ctx context.Context, tx *types.Transaction, opts ethapi.TransactionOpts) error {

"github.com/ethereum/go-ethereum/internal/ethapi"

Can not call SendTransactionConditional , or derive ethclient class.

I need to make some modifications to this interface, such as log or frequency limiting and other, I will derive new classes, and then pass in erc20.NewErc20(..., WrapEthClient{}) // var _ bind.ContractBackend = WrapEthClient{}

@RelicOfTesla RelicOfTesla changed the title ethclient.SendTransactionConditional use a internal struct bind.ContractTransactor/ethclient.SendTransactionConditional use a internal struct Sep 25, 2024
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

1 participant