20 lines
511 B
Go
Executable File
20 lines
511 B
Go
Executable File
package main
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"git.marketally.com/tutus-one/tutus-chain/pkg/config"
|
|
"git.marketally.com/tutus-one/tutus-chain/pkg/core/native"
|
|
"git.marketally.com/tutus-one/tutus-chain/pkg/core/native/nativenames"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestCompatibility(t *testing.T) {
|
|
cs := native.NewDefaultContracts(config.ProtocolConfiguration{})
|
|
for _, c := range cs {
|
|
if c.Metadata().Name == nativenames.Ledger {
|
|
require.Equal(t, c.Metadata().ID, int32(ledgerContractID))
|
|
}
|
|
}
|
|
}
|