Skip to content

Commit

Permalink
always allow contract createion in testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
tak1827 committed Dec 3, 2024
1 parent e3967d0 commit b941a49
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/vm/evm_access_control.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b941a49

Please sign in to comment.