Skip to content

Commit

Permalink
chore: remove newlines to pass sonarqube check
Browse files Browse the repository at this point in the history
  • Loading branch information
agparadiso committed May 17, 2024
1 parent 528d283 commit 46d324e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@ func (a *onchainAllowlist) updateFromContractV1(ctx context.Context, blockNum *b
// the iteration order will give priority to new allowed senders, if new addresses are added while iterating over the batches
// an extra step will be executed to keep this up to date.
func (a *onchainAllowlist) updateAllowedSendersInBatches(ctx context.Context, tosContract functions_allow_list.TermsOfServiceAllowListInterface, blockNum *big.Int) error {

// currentAllowedSenderList will be the starting point from which we will be adding the new allowed senders
currentAllowedSenderList := make(map[common.Address]struct{}, 0)
if cal := a.allowlist.Load(); cal != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import (
)

func TestUpdateAllowedSendersInBatches(t *testing.T) {

t.Run("OK-simple_update_in_batches", func(t *testing.T) {
ctx := context.Background()
config := OnchainAllowlistConfig{
Expand Down Expand Up @@ -108,7 +107,6 @@ func TestUpdateAllowedSendersInBatches(t *testing.T) {
// with the orm mock we can validate the actual order in which the allowlist is fetched giving priority to newest addresses
orm := amocks.NewORM(t)
firstCall := orm.On("CreateAllowedSenders", context.Background(), allowlist[40:50]).Times(1).Run(func(args mock.Arguments) {

// after the first call we update the tosContract by adding a new address
addr := testutils.NewAddress()
allowlist = append(allowlist, addr)
Expand Down

0 comments on commit 46d324e

Please sign in to comment.