We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 295f931 commit 545aa24Copy full SHA for 545aa24
1 file changed
zilliqa/src/precompiles/scilla.rs
@@ -181,7 +181,7 @@ fn read_index(ty: ScillaType, d: &mut Decoder) -> Result<Vec<u8>> {
181
ScillaType::Uint64 => serde_json::to_vec(&u64::detokenize(d.decode()?).to_string())?,
182
ScillaType::Uint128 => serde_json::to_vec(&u128::detokenize(d.decode()?).to_string())?,
183
ScillaType::Uint256 => serde_json::to_vec(&U256::detokenize(d.decode()?).to_string())?,
184
- ScillaType::String => String::detokenize(d.decode()?).into_bytes(),
+ ScillaType::String => serde_json::to_vec(&String::detokenize(d.decode()?))?,
185
ScillaType::Map(_, _) => {
186
return Err(anyhow!("a map cannot be the key of another map"));
187
}
0 commit comments