Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
fix nil case in encoded abi
Browse files Browse the repository at this point in the history
  • Loading branch information
Santiago Pittella authored and Santiago Pittella committed Nov 21, 2023
1 parent ce5bdf2 commit b342cbb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/abi.ex
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ defmodule Abi do
number when is_integer(number) -> <<number::unsigned-big-integer-size(256)>>
hex when is_binary(hex) -> encode_hex(hex)
array when is_list(array) -> Enum.map(array, &encode_packed_mixed([&1])) |> Enum.join()
nil -> ""
_ -> raise "Unsupported type"
end

Expand Down

0 comments on commit b342cbb

Please sign in to comment.