Skip to content

Commit

Permalink
fix: add reason to the error when a name doesn't resolve to a contract
Browse files Browse the repository at this point in the history
  • Loading branch information
yaboiishere committed Apr 2, 2024
1 parent 0997d3f commit 2c95930
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ae_mdw/contract.ex
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,8 @@ defmodule AeMdw.Contract do
{:ok, {:id, :contract, pubkey}} ->
pubkey

{:error, _} ->
raise "#{__MODULE__}.maybe_resolve_contract_pk: failed to resolve contract pubkey"
{:error, reason} ->
raise "#{__MODULE__}.maybe_resolve_contract_pk: failed to resolve contract pubkey with reason: #{inspect(reason)}"
end

contract_pk ->
Expand Down

0 comments on commit 2c95930

Please sign in to comment.