Skip to content

Commit

Permalink
change method to contract query builder
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubhaankar-Sharma committed Jan 6, 2024
1 parent 23db380 commit 4385684
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ethrpc/ethrpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion ethrpc/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4385684

Please sign in to comment.