Add CREATE2 opcode for contract creation detection
This commit is contained in:
parent
6a24f4ac30
commit
da69240dae
@ -656,7 +656,7 @@ func (b *EthereumRPC) getInternalDataForBlock(blockHash string, blockHeight uint
|
|||||||
for i, result := range trace {
|
for i, result := range trace {
|
||||||
r := &result.Result
|
r := &result.Result
|
||||||
d := &data[i]
|
d := &data[i]
|
||||||
if r.Type == "CREATE" {
|
if r.Type == "CREATE" || r.Type == "CREATE2" {
|
||||||
d.Type = bchain.CREATE
|
d.Type = bchain.CREATE
|
||||||
d.Contract = r.To
|
d.Contract = r.To
|
||||||
contracts = append(contracts, *b.getCreationContractInfo(d.Contract, blockHeight))
|
contracts = append(contracts, *b.getCreationContractInfo(d.Contract, blockHeight))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user