parent
c5e39dfabf
commit
1cf1fe5d74
32 changed files with 320 additions and 304 deletions
|
@ -42,7 +42,7 @@ func (cd *Cached) GetContractState(hash util.Uint160) (*state.Contract, error) {
|
|||
|
||||
// PutContractState puts given contract state into the given store.
|
||||
func (cd *Cached) PutContractState(cs *state.Contract) error {
|
||||
cd.contracts[cs.ScriptHash()] = cs
|
||||
cd.contracts[cs.Hash] = cs
|
||||
return cd.DAO.PutContractState(cs)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue