Add CREATE2 opcode for contract creation detection

This commit is contained in:
Martin Boehm 2022-12-17 23:09:55 +01:00 committed by Martin
parent 6a24f4ac30
commit da69240dae

View File

@ -656,7 +656,7 @@ func (b *EthereumRPC) getInternalDataForBlock(blockHash string, blockHeight uint
for i, result := range trace {
r := &result.Result
d := &data[i]
if r.Type == "CREATE" {
if r.Type == "CREATE" || r.Type == "CREATE2" {
d.Type = bchain.CREATE
d.Contract = r.To
contracts = append(contracts, *b.getCreationContractInfo(d.Contract, blockHeight))