mirror of
https://github.com/luxfi/evm.git
synced 2026-09-24 00:27:44 +00:00
27 lines
631 B
Go
27 lines
631 B
Go
// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package allowlisttest
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/luxfi/evm/precompile/allowlist"
|
|
"github.com/luxfi/evm/precompile/modules"
|
|
)
|
|
|
|
var testModule = modules.Module{
|
|
Address: dummyAddr,
|
|
Contract: allowlist.CreateAllowListPrecompile(dummyAddr),
|
|
Configurator: &dummyConfigurator{},
|
|
ConfigKey: "dummy",
|
|
}
|
|
|
|
func TestVerifyAllowlist(t *testing.T) {
|
|
RunPrecompileWithAllowListTests(t, testModule, nil)
|
|
}
|
|
|
|
func TestEqualAllowList(t *testing.T) {
|
|
EqualPrecompileWithAllowListTests(t, testModule, nil)
|
|
}
|