We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following code raises an error:
abi = [ %{ "constant" => true, "inputs" => [%{"name" => "x", "type" => "int256"}], "name" => "with_arguments", "outputs" => [%{"name" => "", "type" => "bool"}], "payable" => false, "stateMutability" => "view", "type" => "function" } ] selector = abi |> ABI.parse_specification() |> hd selector |> ABI.encode([42])
Output:
** (RuntimeError) Unsupported encoding type: {:int, 256} (abi) lib/abi/type_encoder.ex:215: ABI.TypeEncoder.encode_type/2 (abi) lib/abi/type_encoder.ex:139: ABI.TypeEncoder.do_encode/3 (abi) lib/abi/type_encoder.ex:102: ABI.TypeEncoder.encode/2
Expected output:
"7df46666000000000000000000000000000000000000000000000000000000000000002a"
From blockscout/blockscout#363.
The text was updated successfully, but these errors were encountered:
Merge pull request #1 from pthomalla/master
3c434c8
chore: update mix.lock
No branches or pull requests
Description
The following code raises an error:
Output:
Expected output:
"7df46666000000000000000000000000000000000000000000000000000000000000002a"
From blockscout/blockscout#363.
The text was updated successfully, but these errors were encountered: