Skip to content

Commit

Permalink
prdoc
Browse files Browse the repository at this point in the history
Signed-off-by: xermicus <cyrill@parity.io>
  • Loading branch information
xermicus committed Sep 17, 2024
1 parent 1245b27 commit 81f4586
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions prdoc/pr_5743.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
title: "[pallet-revive] write sandbox output according to the provided output buffer length"

doc:
- audience: Runtime Dev
description: |
Instead of error out if the provided output buffer is smaller than what we want to write,
we can just write what fits into the output buffer instead.
We already write back the actual bytes written to the in-out pointer,
so contracts can check it anyways.

This in turn introduces the benefit of allowing contracts to implicitly request only a portion
of the returned data from calls and incantations.
Which is especially beneficial for YUL as the call family opcodes have a return data size
argument and this change removes the need to work around it in contract code.

crates:
- name: pallet-revive
bump: major
- name: pallet-revive-fixtures
bump: patch
- name: pallet-revive-uapi
bump: patch

0 comments on commit 81f4586

Please sign in to comment.