Skip to content

Commit

Permalink
remove random from proposal file name
Browse files Browse the repository at this point in the history
  • Loading branch information
tenmoves committed Mar 17, 2023
1 parent 45a4723 commit 884a7d9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/archethic/governance/code.ex
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,7 @@ defmodule Archethic.Governance.Code do
src_dir,
persist?
) do
random = :crypto.strong_rand_bytes(4) |> Base.encode16()
prop_file = Path.join(System.tmp_dir!(), "prop_#{random}_#{Base.encode16(address)}")
prop_file = Path.join(System.tmp_dir!(), "prop_#{Base.encode16(address)}")
File.write!(prop_file, changes)

cmd_options = [stderr_to_stdout: true, cd: src_dir]
Expand Down

0 comments on commit 884a7d9

Please sign in to comment.