From 43856840fb1b51426801fd02c6114ddcfafcd0ee Mon Sep 17 00:00:00 2001 From: spongeboi Date: Sat, 6 Jan 2024 21:44:03 +0530 Subject: [PATCH] change method to contract query builder --- ethrpc/ethrpc.go | 2 +- ethrpc/methods.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ethrpc/ethrpc.go b/ethrpc/ethrpc.go index 2391304f..72eb6d31 100644 --- a/ethrpc/ethrpc.go +++ b/ethrpc/ethrpc.go @@ -434,7 +434,7 @@ func (p *Provider) ContractQuery(ctx context.Context, contractAddress string, in func (p *Provider) contractQuery(ctx context.Context, contractAddress string, inputAbiExpr, outputAbiExpr string, args interface{}) ([]string, error) { contract := common.HexToAddress(contractAddress) - contractQueryBuilder, err := ContractQuery(contract, inputAbiExpr, outputAbiExpr, args) + contractQueryBuilder, err := ContractQueryBuilder(contract, inputAbiExpr, outputAbiExpr, args) if err != nil { return nil, err } diff --git a/ethrpc/methods.go b/ethrpc/methods.go index 12ff6cb1..0ea02b24 100644 --- a/ethrpc/methods.go +++ b/ethrpc/methods.go @@ -283,7 +283,7 @@ func PendingTransactionCount() CallBuilder[uint] { } } -func ContractQuery(contractAddress common.Address, inputAbiExpr, outputAbiExpr string, args interface{}) (CallBuilder[[]string], error) { +func ContractQueryBuilder(contractAddress common.Address, inputAbiExpr, outputAbiExpr string, args interface{}) (CallBuilder[[]string], error) { var ( calldata []byte err error