Skip to content

Commit

Permalink
fixup! feat(evm-reader): Read claim acceptance
Browse files Browse the repository at this point in the history
  • Loading branch information
fmoura committed Sep 5, 2024
1 parent 7688719 commit e9b70be
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion internal/evmreader/evmreader.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ type EvmReaderRepository interface {
GetAllRunningApplications(ctx context.Context) ([]Application, error)
GetNodeConfig(ctx context.Context) (*NodePersistentConfig, error)
GetEpoch(ctx context.Context, indexKey uint64, appAddressKey Address) (*Epoch, error)
GetPreviousSubmittedClaimsEpochs(ctx context.Context, app Address, lastBlock uint64) ([]*Epoch, error)
GetPreviousSubmittedClaimsEpochs(
ctx context.Context,
app Address,
lastBlock uint64,
) ([]*Epoch, error)
UpdateEpochsClaimStatusTransaction(ctx context.Context,
app Address,
claims []*Epoch,
Expand Down
7 changes: 6 additions & 1 deletion internal/repository/evmreader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,12 @@ func (s *RepositorySuite) TestUpdateEpochsClaimStatusTransaction() {

claims := []*Epoch{claim}

err = s.database.UpdateEpochsClaimStatusTransaction(s.ctx, common.HexToAddress("deadbeef"), claims, 499)
err = s.database.UpdateEpochsClaimStatusTransaction(
s.ctx,
common.HexToAddress("deadbeef"),
claims,
499,
)
s.Require().Nil(err)

claim, err = s.database.GetEpoch(s.ctx, 2, common.HexToAddress("deadbeef"))
Expand Down

0 comments on commit e9b70be

Please sign in to comment.