Skip to content

Commit

Permalink
update common
Browse files Browse the repository at this point in the history
  • Loading branch information
EasterTheBunny committed Aug 1, 2024
1 parent 82a5e8c commit c226261
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.21.3

require (
github.com/hashicorp/go-plugin v1.6.0
github.com/smartcontractkit/chainlink-common v0.2.2-0.20240723135651-f3834dfa53fd
github.com/smartcontractkit/chainlink-common v0.2.2-0.20240801143749-22c729620ed7
github.com/smartcontractkit/libocr v0.0.0-20240419185742-fd3cab206b2c
github.com/stretchr/testify v1.9.0
)
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ github.com/shopspring/decimal v1.4.0 h1:bxl37RwXBklmTi0C79JfXCEBD1cqqHt0bbgBAGFp
github.com/shopspring/decimal v1.4.0/go.mod h1:gawqmDU56v4yIKSwfBSFip1HdCCXN8/+DMd9qYNcwME=
github.com/smartcontractkit/chainlink-common v0.2.2-0.20240723135651-f3834dfa53fd h1:IA3z1CURIWxL2SrayoMbPApERBmX+xFX1f8etYFTVo0=
github.com/smartcontractkit/chainlink-common v0.2.2-0.20240723135651-f3834dfa53fd/go.mod h1:Jg1sCTsbxg76YByI8ifpFby3FvVqISStHT8ypy9ocmY=
github.com/smartcontractkit/chainlink-common v0.2.2-0.20240801143749-22c729620ed7 h1:nIHK1aMQmzzRe9xje3QRcNyz3B/PWx9XGUdQy0qz8AA=
github.com/smartcontractkit/chainlink-common v0.2.2-0.20240801143749-22c729620ed7/go.mod h1:Jg1sCTsbxg76YByI8ifpFby3FvVqISStHT8ypy9ocmY=
github.com/smartcontractkit/go-plugin v0.0.0-20240208201424-b3b91517de16 h1:TFe+FvzxClblt6qRfqEhUfa4kFQx5UobuoFGO2W4mMo=
github.com/smartcontractkit/go-plugin v0.0.0-20240208201424-b3b91517de16/go.mod h1:lBS5MtSSBZk0SHc66KACcjjlU6WzEVP/8pwz68aMkCI=
github.com/smartcontractkit/grpc-proxy v0.0.0-20230731113816-f1be6620749f h1:hgJif132UCdjo8u43i7iPN1/MFnu49hv7lFGFftCHKU=
Expand Down
6 changes: 2 additions & 4 deletions median/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,9 @@ func (c *contractReaderContract) LatestTransmissionDetails(ctx context.Context)
binding := types.BoundContract{
Address: "TODO",
Contract: contractName,
Method: "LatestTransmissionDetails",
}

err = c.contractReader.GetLatestValue(ctx, binding, primitives.Unconfirmed, nil, &resp)
err = c.contractReader.GetLatestValue(ctx, binding.ReadKey("LatestTransmissionDetails"), primitives.Unconfirmed, nil, &resp)
if err != nil {
if !errors.Is(err, types.ErrNotFound) {
return
Expand All @@ -156,10 +155,9 @@ func (c *contractReaderContract) LatestRoundRequested(ctx context.Context, lookb
binding := types.BoundContract{
Address: "TODO",
Contract: contractName,
Method: "LatestRoundRequested",
}

err = c.contractReader.GetLatestValue(ctx, binding, primitives.Unconfirmed, nil, &resp)
err = c.contractReader.GetLatestValue(ctx, binding.ReadKey("LatestRoundRequested"), primitives.Unconfirmed, nil, &resp)
if err != nil {
if !errors.Is(err, types.ErrNotFound) {
return
Expand Down

0 comments on commit c226261

Please sign in to comment.