mirror of
https://github.com/luxfi/evm.git
synced 2026-09-24 00:27:44 +00:00
26 lines
593 B
Go
26 lines
593 B
Go
// (c) 2020-2023, Lux Industries, Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package allowlist_test
|
|
|
|
import (
|
|
"testing"
|
|
"github.com/luxfi/evm/precompile/allowlist"
|
|
"github.com/luxfi/evm/precompile/registry"
|
|
)
|
|
|
|
var testModule = registry.NewModule(
|
|
"dummy",
|
|
dummyAddr,
|
|
allowlist.CreateAllowListPrecompile(dummyAddr),
|
|
&dummyConfigurator{},
|
|
)
|
|
|
|
func TestVerifyAllowlist(t *testing.T) {
|
|
allowlist.VerifyPrecompileWithAllowListTests(t, testModule, nil)
|
|
}
|
|
|
|
func TestEqualAllowList(t *testing.T) {
|
|
allowlist.EqualPrecompileWithAllowListTests(t, testModule, nil)
|
|
}
|