Skip to content

Commit

Permalink
fix proofchain public key hash returned
Browse files Browse the repository at this point in the history
  • Loading branch information
kitti-katy committed May 31, 2023
1 parent b34b339 commit 38e2441
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/rudder/proof_chain/proof_chain_interactor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ defmodule Rudder.ProofChain.Interactor do

defp get_bsp_proofchain() do
proofchain_address = Application.get_env(:rudder, :bsp_proofchain_address)
Rudder.RPC.PublicKeyHash.parse(proofchain_address)
{:ok, proofchain} = Rudder.RPC.PublicKeyHash.parse(proofchain_address)
proofchain
end

defp get_brp_proofchain() do
proofchain_address = Application.get_env(:rudder, :brp_proofchain_address)
Rudder.RPC.PublicKeyHash.parse(proofchain_address)
{:ok, proofchain} = Rudder.RPC.PublicKeyHash.parse(proofchain_address)
proofchain
end

defp make_call(data, proofchain) do
Expand Down

0 comments on commit 38e2441

Please sign in to comment.