From da69240dae51d778c4e50f5943465026e185e53f Mon Sep 17 00:00:00 2001 From: Martin Boehm Date: Sat, 17 Dec 2022 23:09:55 +0100 Subject: [PATCH] Add CREATE2 opcode for contract creation detection --- bchain/coins/eth/ethrpc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bchain/coins/eth/ethrpc.go b/bchain/coins/eth/ethrpc.go index 4484a475..c4210fb9 100644 --- a/bchain/coins/eth/ethrpc.go +++ b/bchain/coins/eth/ethrpc.go @@ -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))