Closed wuminzhe closed 2 years ago
I prefer to remove abi_encode_bytes as it adds an unnecessary encoding and decoding process.
abi_encode_bytes
Ok(PrecompileOutput { exit_status: ExitSucceed::Returned, cost: helper.used_gas(), output: abi_encode_bytes(&output.unwrap_or_default()), <--- logs: Default::default(), })
It's not entirely correct. If playing with smart contracts with remix, it will do ethabi decode automatically. If we remove it, the code remix shows are wrong.
I prefer to remove
abi_encode_bytes
as it adds an unnecessary encoding and decoding process.