diff --git a/app/rpc/namespaces/eth/api.go b/app/rpc/namespaces/eth/api.go index 9be781af4..d24107e5e 100644 --- a/app/rpc/namespaces/eth/api.go +++ b/app/rpc/namespaces/eth/api.go @@ -1311,6 +1311,11 @@ func (api *PublicEthereumAPI) GetTransactionReceipt(hash common.Hash) (*watcher. data.Logs = []*ethtypes.Log{} data.Bloom = ethtypes.BytesToBloom(make([]byte, 256)) } + for k, log := range data.Logs { + if len(log.Topics) == 0 { + data.Logs[k].Topics = make([]common.Hash, 0) + } + } contractAddr := &data.ContractAddress if data.ContractAddress == common.HexToAddress("0x00000000000000000000") {