Skip to content

Commit

Permalink
fix: ensure correct address printout startup (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
zachongit committed Jan 26, 2024
1 parent 987dafa commit 348ab71
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/model/credsql.ex
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ defmodule Model.CredSql do
""")
end)

ensure_identity()
Diode.puts("====== Coinbase ======")
Diode.puts("#{Wallet.printable(Diode.miner())}")
Diode.puts("")

case Diode.get_env_int("PRIVATE", 0) do
# Decode env parameter such as
# export PRIVATE="0x123456789"
Expand All @@ -49,6 +44,10 @@ defmodule Model.CredSql do
|> set_wallet()
end

Diode.puts("====== Coinbase ======")
Diode.puts("#{Wallet.printable(Diode.miner())}")
Diode.puts("")

{:ok, %{}}
end

Expand Down

0 comments on commit 348ab71

Please sign in to comment.