Skip to content

Commit

Permalink
readkey switch
Browse files Browse the repository at this point in the history
  • Loading branch information
EasterTheBunny committed Aug 2, 2024
1 parent 4adc95f commit ac9f986
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions median/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@ func (c *contractReaderContract) LatestTransmissionDetails(ctx context.Context)
var resp latestTransmissionDetailsResponse

binding := types.BoundContract{
Address: "TODO",
Contract: contractName,
Address: "TODO",
Name: contractName,
}

err = c.contractReader.GetLatestValue(ctx, binding.ReadKey("LatestTransmissionDetails"), primitives.Unconfirmed, nil, &resp)
err = c.contractReader.GetLatestValue(ctx, binding.ReadIdentifier("LatestTransmissionDetails"), primitives.Unconfirmed, nil, &resp)
if err != nil {
if !errors.Is(err, types.ErrNotFound) {
return
Expand All @@ -153,11 +153,11 @@ func (c *contractReaderContract) LatestRoundRequested(ctx context.Context, lookb
var resp latestRoundRequested

binding := types.BoundContract{
Address: "TODO",
Contract: contractName,
Address: "TODO",
Name: contractName,
}

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

0 comments on commit ac9f986

Please sign in to comment.