(obj plumbing.EncodedObject)
| 212 | } |
| 213 | |
| 214 | func (tx *TxObjectStorage) SetEncodedObject(obj plumbing.EncodedObject) (plumbing.Hash, error) { |
| 215 | h := obj.Hash() |
| 216 | tx.Objects[h] = obj |
| 217 | |
| 218 | return h, nil |
| 219 | } |
| 220 | |
| 221 | func (tx *TxObjectStorage) EncodedObject(t plumbing.ObjectType, h plumbing.Hash) (plumbing.EncodedObject, error) { |
| 222 | obj, ok := tx.Objects[h] |