Commit 3a7f929e authored by Robin Freyler's avatar Robin Freyler

[core] fix bug in executing ext::scratch_read causing panic

parent 7a35257f
Pipeline #56183 failed with stages
in 1 minute and 5 seconds
......@@ -320,7 +320,7 @@ where
// the result value.
let req_len = ext::scratch_size();
let ret = ext::scratch_read(buffer.as_mut(), 0);
let ret = ext::scratch_read(&mut buffer.as_mut()[0..req_len], 0);
if !ret.is_success() {
return Err(Error::InvalidContractInstantiationReturn)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment