Skip to content

Commit

Permalink
git Merge branch 'develop' into feature/cdk380-fix_datacommitee_test
Browse files Browse the repository at this point in the history
  • Loading branch information
joanestebanr committed Jul 29, 2024
2 parents 985d052 + 3d61577 commit 677a416
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
20 changes: 20 additions & 0 deletions sequencesender/txbuilder/elderberry_base_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package txbuilder

import (
"testing"

"github.com/0xPolygon/cdk/etherman/contracts"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/stretchr/testify/require"
)

func TestElderberryNewSequence(t *testing.T) {
zkevmContract := contracts.RollupElderberryType{}
opts := bind.TransactOpts{}
sut := NewTxBuilderElderberryBase(zkevmContract, opts)
require.NotNil(t, sut)
seq, err := sut.NewSequence(nil, common.Address{})
require.NotNil(t, seq)
require.NoError(t, err)
}
32 changes: 32 additions & 0 deletions sequencesender/txbuilder/elderberry_zkevm_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package txbuilder

import (
"strings"
"testing"

"github.com/0xPolygon/cdk/etherman/contracts"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/stretchr/testify/require"
)

func TestElderberryZkevmName(t *testing.T) {
zkevmContract := contracts.RollupElderberryType{}
opts := bind.TransactOpts{}
sender := common.Address{}
sut := NewTxBuilderElderberryZKEVM(zkevmContract, opts, sender, 100)
require.NotNil(t, sut)
require.True(t, strings.Contains(sut.String(), "Elderberry"))
require.True(t, strings.Contains(sut.String(), "ZKEVM"))
}

func TestElderberryZkevmNewSequence(t *testing.T) {
zkevmContract := contracts.RollupElderberryType{}
opts := bind.TransactOpts{}
sender := common.Address{}
sut := NewTxBuilderElderberryZKEVM(zkevmContract, opts, sender, 100)
require.NotNil(t, sut)
seq, err := sut.NewSequence(nil, common.Address{})
require.NoError(t, err)
require.NotNil(t, seq)
}
Empty file added test.env
Empty file.

0 comments on commit 677a416

Please sign in to comment.