Skip to content

Commit

Permalink
pkg/cosmos/adapters/cosmwasm/contract_reader.go: fix event query
Browse files Browse the repository at this point in the history
  • Loading branch information
cfal committed Aug 9, 2023
1 parent 3521ff9 commit fe142f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cosmos/adapters/cosmwasm/contract_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (r *OCR2Reader) LatestConfigDetails(ctx context.Context) (changedInBlock ui
}

func (r *OCR2Reader) LatestConfig(ctx context.Context, changedInBlock uint64) (types.ContractConfig, error) {
query := []string{fmt.Sprintf("tx.height=%d", changedInBlock), fmt.Sprintf("wasm-set_config.contract_address='%s'", r.address)}
query := []string{fmt.Sprintf("tx.height=%d", changedInBlock), fmt.Sprintf("wasm-set_config._contract_address='%s'", r.address)}
res, err := r.chainReader.TxsEvents(query, nil)
if err != nil {
return types.ContractConfig{}, err
Expand Down

0 comments on commit fe142f7

Please sign in to comment.