Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add authorization status to EIP7702 authorizations in transaction receipt #640

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/schemas/receipt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,9 @@ ReceiptInfo:
title: blob gas price
description: The actual value per gas deducted from the sender's account for blob gas. Only specified for blob transactions as defined by EIP-4844.
$ref: '#/components/schemas/uint'
authorizationStatus:
title: list of authorizations' status
description: Ordered list of authorizations' status. List contains either 1 (success) or 0 (failure) for each authorization in the transaction
type: array
items:
$ref: '#/components/schemas/uint'
2 changes: 1 addition & 1 deletion tests/eth_getTransactionReceipt/get-setcode-tx.io
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// gets the receipt for a EIP-7702 setcode transaction
>> {"jsonrpc":"2.0","id":1,"method":"eth_getTransactionReceipt","params":["0x16f6724ad864e7664c367893cae3e176d362bea3a47495cec3b246555a7228da"]}
<< {"jsonrpc":"2.0","id":1,"result":{"blockHash":"0xaf51811799f22260e5b4e1f95504dae760505f102dcb2e9ca7d897d8a40124a1","blockNumber":"0x2d","contractAddress":null,"cumulativeGasUsed":"0x17231","effectiveGasPrice":"0x5763d65","from":"0x7435ed30a8b4aeb0877cef0c6e8cffe834eb865f","gasUsed":"0x8fc0","logs":[],"logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","status":"0x1","to":"0x0000000000000000000000000000000000000000","transactionHash":"0x16f6724ad864e7664c367893cae3e176d362bea3a47495cec3b246555a7228da","transactionIndex":"0x1","type":"0x4"}}
<< {"jsonrpc":"2.0","id":1,"result":{"blockHash":"0xaf51811799f22260e5b4e1f95504dae760505f102dcb2e9ca7d897d8a40124a1","blockNumber":"0x2d","contractAddress":null,"cumulativeGasUsed":"0x17231","effectiveGasPrice":"0x5763d65","from":"0x7435ed30a8b4aeb0877cef0c6e8cffe834eb865f","gasUsed":"0x8fc0","logs":[],"logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","status":"0x1","to":"0x0000000000000000000000000000000000000000","transactionHash":"0x16f6724ad864e7664c367893cae3e176d362bea3a47495cec3b246555a7228da","authorizationStatus": "["0x0","0x1"]","transactionIndex":"0x1","type":"0x4"}}