Skip to content

Commit

Permalink
Remove thing in db
Browse files Browse the repository at this point in the history
  • Loading branch information
Neylix committed Dec 31, 2024
1 parent 4de36a8 commit 0266380
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions lib/archethic/db/embedded_impl/chain_reader.ex
Original file line number Diff line number Diff line change
Expand Up @@ -550,17 +550,7 @@ defmodule Archethic.DB.EmbeddedImpl.ChainReader do
end
end
)
|> then(fn tx ->
# To avoid atomize manfiest keys we need to extract and inject it later
{contract, tx} =
get_and_update_in(tx, [Access.key(:data, %{}), :contract], fn contract ->
{contract, nil}
end)

tx
|> Utils.atomize_keys()
|> put_in([:data, :contract], contract)
end)
|> Utils.atomize_keys()
|> Transaction.cast()
end
end

0 comments on commit 0266380

Please sign in to comment.