-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why :error when data is not binary? #14
Labels
Comments
We don't need throw def encode(anything) do
:erlang.term_to_binary(anything)
|> encode()
end see: https://elixirforum.com/t/erlang-term-to-binary-and-vice-versa-in-elixir/11034/3 |
nelsonic
added a commit
that referenced
this issue
Apr 25, 2020
nelsonic
added a commit
that referenced
this issue
Apr 26, 2020
nelsonic
added a commit
that referenced
this issue
Apr 26, 2020
nelsonic
added a commit
that referenced
this issue
Apr 26, 2020
I need to encode |
The code is backwards compatible provided people weren't counting on getting an |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
At present when the value to be encoded is not a binary, we return an
:error
:https://github.com/dwyl/exbase58/blob/c56a72407fa6f8b09423d9461206fafec68bc809/lib/base58encode.ex#L32-L33
Why? 🤷
The text was updated successfully, but these errors were encountered: