Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ettec committed Sep 18, 2024
1 parent f753e47 commit 7505b5a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
2 changes: 1 addition & 1 deletion core/services/relay/evm/chain_components_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func TestChainComponents(t *testing.T) {
it.Helper.Init(t)

// add new subtests here so that it can be run on real chains too
// RunChainComponentsEvmTests(t, it)
RunChainComponentsEvmTests(t, it)
RunContractReaderInterfaceTests[*testing.T](t, commontestutils.WrapContractReaderTesterForLoop(it), false)
}

Expand Down
18 changes: 0 additions & 18 deletions core/services/relay/evm/chain_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,24 +196,6 @@ func (cr *chainReader) GetLatestValue(ctx context.Context, readName string, conf
return nil
}

func (cr *chainReader) GetLatestWrappedValue(ctx context.Context, readName string, confidenceLevel primitives.ConfidenceLevel, params any) (values.Value, error) {
returnVal, err := cr.CreateContractType(readName, false)
if err != nil {
return nil, err
}

if err = cr.GetLatestValue(ctx, readName, confidenceLevel, params, returnVal); err != nil {
return nil, err
}

wrappedValue, err := values.Wrap(returnVal)
if err != nil {
return nil, err
}

return wrappedValue, nil
}

func (cr *chainReader) BatchGetLatestValues(ctx context.Context, request commontypes.BatchGetLatestValuesRequest) (commontypes.BatchGetLatestValuesResult, error) {
return cr.bindings.BatchGetLatestValues(ctx, request)
}
Expand Down

0 comments on commit 7505b5a

Please sign in to comment.