mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 13:46:43 +00:00
guard create contract
This commit is contained in:
parent
b369a855fb
commit
bfba27dd07
1 changed files with 3 additions and 0 deletions
|
|
@ -656,6 +656,9 @@ func (s *StateDB) CreateAccount(addr common.Address) {
|
|||
// correctly handle EIP-6780 'delete-in-same-transaction' logic.
|
||||
func (s *StateDB) CreateContract(addr common.Address) {
|
||||
obj := s.getStateObject(addr)
|
||||
if obj == nil {
|
||||
return
|
||||
}
|
||||
if !obj.newContract {
|
||||
obj.newContract = true
|
||||
s.journal.createContract(addr)
|
||||
|
|
|
|||
Loading…
Reference in a new issue