Skip to main content

decode_abi_bytes

Function decode_abi_bytes 

Source
pub fn decode_abi_bytes(data: &[u8]) -> Result<Vec<u8>, String>
Expand description

Decode ABI-encoded bytes return value from Solidity.

The contenthash function returns bytes which is ABI-encoded as: offset (32 bytes, = 0x20) length (32 bytes) data (padded to 32-byte boundary)