Skip to content

Commit

Permalink
Merge pull request #1431 from zmcNotafraid/issue-1430
Browse files Browse the repository at this point in the history
Issue 1430
  • Loading branch information
zmcNotafraid committed May 11, 2023
2 parents 502e707 + 90d7f36 commit 82b6c33
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 35 deletions.
14 changes: 7 additions & 7 deletions assets/package-lock.json

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

2 changes: 1 addition & 1 deletion assets/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"dependencies": {
"solc": "0.8.19"
"solc": "0.8.20"
}
}
12 changes: 6 additions & 6 deletions lib/godwoken_indexer/worker/generate_yok_series_contract.ex
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ defmodule GodwokenIndexer.Worker.GenerateYokSeriesContract do
with account when account != nil <-
Repo.get(Account, account_id),
udt when is_nil(udt) <- Repo.get(UDT, account_id),
smart_contract when is_nil(smart_contract) <- Repo.get(SmartContract, account_id) do
Repo.transaction(fn ->
decimal = UDT.eth_call_decimal(account.eth_address)
supply = UDT.eth_call_total_supply(account.eth_address)
name = UDT.eth_call_name(account.eth_address)
symbol = UDT.eth_call_symbol(account.eth_address)
smart_contract when is_nil(smart_contract) <- Repo.get(SmartContract, account_id),
{:ok, decimal} <- UDT.eth_call_decimal(account.eth_address) do
supply = UDT.eth_call_total_supply(account.eth_address)
name = UDT.eth_call_name(account.eth_address)
symbol = UDT.eth_call_symbol(account.eth_address)

Repo.transaction(fn ->
Repo.insert!(%UDT{
name: name,
symbol: symbol,
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.27.0"},
{:rustler, "~> 0.28.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.27.0", "53ffe86586fd1a2ea60ad07f1506962914eb669dba26c23010cf672662ec8d64", [:mix], [{:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}, {:toml, "~> 0.6", [hex: :toml, repo: "hexpm", optional: false]}], "hexpm", "d7f5ccaec6e7a96f700330898ff2e9d48818e40789fd2951ba41ecf457986e92"},
"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"},
"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
34 changes: 17 additions & 17 deletions native/molecule_parser/Cargo.lock

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

4 changes: 2 additions & 2 deletions 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.27.0"
rustler = "0.28.0"
molecule = { version = "0.7.5", default-features = false }
hex= "0.4.3"
ckb-hash = "0.108.1"
ckb-hash = "0.109.0"

0 comments on commit 82b6c33

Please sign in to comment.