Skip to content

Commit

Permalink
Merge pull request #1467 from zmcNotafraid/issue-1465
Browse files Browse the repository at this point in the history
Issue 1465
  • Loading branch information
zmcNotafraid authored Jun 27, 2023
2 parents 0284c01 + 8a759d9 commit 464789e
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions lib/godwoken_explorer/bit/api.ex
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ defmodule GodwokenExplorer.Bit.API do
}

with {:ok, %{body: body}} <- post("/v1/reverse/record", params),
%{"data" => %{"account_alias" => account_alias}} when not is_nil(account_alias) <- body do
{:ok, account_alias}
%{"data" => %{"account" => account}} when account != "" <- body do
{:ok, account}
else
error ->
{:error, "error with #{inspect(error)}"}
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ defmodule GodwokenExplorer.MixProject do
{:gettext, "~> 0.22"},
{:plug_cowboy, "~> 2.0"},
{:httpoison, "~> 2.0"},
{:rustler, "~> 0.28.0"},
{:rustler, "~> 0.29.0"},
{:con_cache, "~> 1.0"},
{:scrivener_ecto, "~> 2.0"},
{:decimal, "~> 2.0"},
Expand Down
2 changes: 1 addition & 1 deletion mix.lock
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
"ranch": {:hex, :ranch, "1.8.0", "8c7a100a139fd57f17327b6413e4167ac559fbc04ca7448e9be9057311597a1d", [:make, :rebar3], [], "hexpm", "49fbcfd3682fab1f5d109351b61257676da1a2fdbe295904176d5e521a2ddfe5"},
"recon": {:hex, :recon, "2.5.2", "cba53fa8db83ad968c9a652e09c3ed7ddcc4da434f27c3eaa9ca47ffb2b1ff03", [:mix, :rebar3], [], "hexpm", "2c7523c8dee91dff41f6b3d63cba2bd49eb6d2fe5bf1eec0df7f87eb5e230e1c"},
"retry": {:hex, :retry, "0.15.0", "ba6aaeba92905a396c18c299a07e638947b2ba781e914f803202bc1b9ae867c3", [:mix], [], "hexpm", "93d3310bce78c0a30cc94610684340a14adfc9136856a3f662e4d9ce6013c784"},
"rustler": {:hex, :rustler, "0.28.0", "b8e2c43013e12dd06f61dcf87033d2e2c8245feddb121b82179c923be31ad319", [:mix], [{:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}, {:toml, "~> 0.6", [hex: :toml, repo: "hexpm", optional: false]}], "hexpm", "99f811f58c993f0343851adb0af589a99cfd3dc20f2efb8ef08d1a8447980b98"},
"rustler": {:hex, :rustler, "0.29.0", "46b7792dfecfd8aab323d1bbf417086b67f1d394733a7e67808b20cd2d455a36", [:mix], [{:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}, {:toml, "~> 0.6", [hex: :toml, repo: "hexpm", optional: false]}], "hexpm", "3fec912e623c111745dcc768e28784dfba6aabae13d0d41f1f07bbd8a52a957a"},
"scrivener": {:hex, :scrivener, "2.7.2", "1d913c965ec352650a7f864ad7fd8d80462f76a32f33d57d1e48bc5e9d40aba2", [:mix], [], "hexpm", "7866a0ec4d40274efbee1db8bead13a995ea4926ecd8203345af8f90d2b620d9"},
"scrivener_ecto": {:hex, :scrivener_ecto, "2.7.0", "cf64b8cb8a96cd131cdbcecf64e7fd395e21aaa1cb0236c42a7c2e34b0dca580", [:mix], [{:ecto, "~> 3.3", [hex: :ecto, repo: "hexpm", optional: false]}, {:scrivener, "~> 2.4", [hex: :scrivener, repo: "hexpm", optional: false]}], "hexpm", "e809f171687806b0031129034352f5ae44849720c48dd839200adeaf0ac3e260"},
"scrivener_list": {:hex, :scrivener_list, "2.0.1", "2b3b5c6aaf21d13b76071e755af498b641f37a069e34e68585ba4c624095d719", [:mix], [{:scrivener_ecto, "~> 1.0 or ~> 2.0", [hex: :scrivener_ecto, repo: "hexpm", optional: false]}], "hexpm", "dc82a317268e24b29891b2de659cd82d15654f49ceee86846de2c96b3c4f4e5d"},
Expand Down
12 changes: 6 additions & 6 deletions native/molecule_parser/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion native/molecule_parser/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ path = "src/lib.rs"
crate-type = ["dylib"]

[dependencies]
rustler = "0.28.0"
rustler = "0.29.0"
molecule = { version = "0.7.5", default-features = false }
hex= "0.4.3"
ckb-hash = "0.110.0"
2 changes: 1 addition & 1 deletion test/godwoken_explorer/bit/api_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ defmodule GodwokenExplorer.Bit.APITest do
execute: fn _, _, _ ->
{:ok,
%{
body: %{"data" => %{"account_alias" => "test.bit"}}
body: %{"data" => %{"account" => "test.bit", "account_alias" => "test.bit"}}
}}
end do
assert GodwokenExplorer.Bit.API.fetch_reverse_record_info(user.eth_address) ==
Expand Down

0 comments on commit 464789e

Please sign in to comment.