|
@@ -108,7 +108,7 @@ func (t *odrTrie) TryGet(key []byte) ([]byte, error) {
|
|
|
func (t *odrTrie) TryUpdate(key, value []byte) error {
|
|
func (t *odrTrie) TryUpdate(key, value []byte) error {
|
|
|
key = crypto.Keccak256(key)
|
|
key = crypto.Keccak256(key)
|
|
|
return t.do(key, func() error {
|
|
return t.do(key, func() error {
|
|
|
- return t.trie.TryDelete(key)
|
|
|
|
|
|
|
+ return t.trie.TryUpdate(key, value)
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|