-
Notifications
You must be signed in to change notification settings - Fork 667
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: xermicus <cyrill@parity.io>
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |