You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example code doesnt work, when I expect that it should. Happens for strings and other variable length types as well.
#[cfg(test)]mod tests {use alloy_primitives::hex::{decode, encode};use alloy_sol_types::{sol,SolCall};sol!{
interface Test{
function test() returns (uint256[]);
}}#[test]fntest_decode_var_length(){Test::testCall::abi_decode_returns(&decode(format!("{}000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002",
encode(Test::testCall::SELECTOR))).unwrap(),true,).expect("Should be able to decode");}}
Component
sol-types
What version of Alloy are you on?
https://github.com/alloy-rs/core.git#8b33e7fe
Operating System
Linux
Describe the bug
Example code doesnt work, when I expect that it should. Happens for strings and other variable length types as well.
Error
The text was updated successfully, but these errors were encountered: