From b941a494767b7ce92bb9509d6eeb8c43e9b50aa4 Mon Sep 17 00:00:00 2001 From: tak Date: Tue, 3 Dec 2024 14:22:35 +0700 Subject: [PATCH] always allow contract createion in testnet --- core/vm/evm_access_control.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/vm/evm_access_control.go b/core/vm/evm_access_control.go index 51e667d1f..9faeed565 100644 --- a/core/vm/evm_access_control.go +++ b/core/vm/evm_access_control.go @@ -25,9 +25,8 @@ var ( // Check the `_createAllowedList` mappings in the `EVMAccessControl` contract func IsAllowedToCreate(state StateDB, from common.Address) bool { - hash := computeAddressMapStorageKey(from, 1) - val := state.GetState(evmAccessControl, hash) - return val.Cmp(emptyHash) != 0 + // Always allow in testnet, as anybody freely create contracts + return true } // Check the `_callAllowedList` mappings in the `EVMAccessControl` contract