mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-19 14:34:17 +00:00
event listeners take EventData, not interface{}; EventData type assertions
This commit is contained in:
@@ -12,7 +12,6 @@ type TxCache struct {
|
||||
backend *BlockCache
|
||||
accounts map[Word256]vmAccountInfo
|
||||
storages map[Tuple256]Word256
|
||||
logs []types.EventDataLog
|
||||
}
|
||||
|
||||
func NewTxCache(backend *BlockCache) *TxCache {
|
||||
@@ -20,7 +19,6 @@ func NewTxCache(backend *BlockCache) *TxCache {
|
||||
backend: backend,
|
||||
accounts: make(map[Word256]vmAccountInfo),
|
||||
storages: make(map[Tuple256]Word256),
|
||||
logs: make([]types.EventDataLog, 0),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -138,10 +136,6 @@ func (cache *TxCache) Sync() {
|
||||
}
|
||||
}
|
||||
|
||||
func (cache *TxCache) AddLog(log types.EventDataLog) {
|
||||
cache.logs = append(cache.logs, log)
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
// Convenience function to return address of new contract
|
||||
|
||||
Reference in New Issue
Block a user