Skip to content

Commit

Permalink
Bugfix for is_dynamic Bump to 1.0.0-alpha6
Browse files Browse the repository at this point in the history
We were missing a case for signed ints
  • Loading branch information
hayesgm committed Feb 29, 2024
1 parent 59e9b18 commit 0473903
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# 1.0.0-alpha6
* Bugfix for is_dynamic
# 0.1.15
* Properly treat all function encodes as tuple encodings
# 0.1.14
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ by adding `abi` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:abi, "~> 1.0.0-alpha5"}
{:abi, "~> 1.0.0-alpha6"}
]
end
```
Expand Down
1 change: 1 addition & 0 deletions lib/abi/function_selector.ex
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@ defmodule ABI.FunctionSelector do
def is_dynamic?({:array, type, len}) when len > 0, do: is_dynamic?(type)
def is_dynamic?({:tuple, types}), do: Enum.any?(types, fn arg_type -> is_dynamic?(arg_type.type) end)
def is_dynamic?({:bytes,_}), do: false
def is_dynamic?({:int,_}), do: false
def is_dynamic?({:uint,_}), do: false
def is_dynamic?(:bool), do: false
def is_dynamic?(:address), do: false
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule ABI.Mixfile do
def project do
[
app: :abi,
version: "1.0.0-alpha5",
version: "1.0.0-alpha6",
elixir: "~> 1.14",
description: "Ethereum's ABI Interface",
package: [
Expand Down

0 comments on commit 0473903

Please sign in to comment.