mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-03 11:41:48 +00:00
core: simplify dao creation with newDao()
This commit is contained in:
parent
32ac01130d
commit
c5ed3b788b
4 changed files with 35 additions and 31 deletions
|
@ -24,7 +24,7 @@ type interopContext struct {
|
|||
}
|
||||
|
||||
func newInteropContext(trigger byte, bc Blockchainer, s storage.Store, block *Block, tx *transaction.Transaction) *interopContext {
|
||||
dao := &dao{store: storage.NewMemCachedStore(s)}
|
||||
dao := newDao(s)
|
||||
nes := make([]state.NotificationEvent, 0)
|
||||
return &interopContext{bc, trigger, block, tx, dao, nes}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue