Count compute units even when transaction errors (#22182)

This commit is contained in:
carllin
2021-12-30 21:21:42 -05:00
committed by GitHub
parent 95dfcc546a
commit d06e6c7425
7 changed files with 339 additions and 65 deletions

View File

@ -2391,6 +2391,7 @@ fn call<'a, 'b: 'a>(
Some(&caller_write_privileges),
&program_indices,
)
.result
.map_err(SyscallError::InstructionError)?;
// Copy results back to caller