Skip to content

Commit ccf61e1

Browse files
Rename remaining "deposit receipt" to "deposit request" (#14629)
* Rename remaining "deposit receipt" to "deposit request" * Add changelog entry --------- Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
1 parent 4edbd2f commit ccf61e1

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ The format is based on Keep a Changelog, and this project adheres to Semantic Ve
5353
- Fixed panic when http request to subscribe to event stream fails.
5454
- Return early for blob reconstructor during capella fork
5555
- Updated block endpoint from V1 to V2
56+
- Rename instances of "deposit receipts" to "deposit requests".
5657

5758
### Deprecated
5859

beacon-chain/core/electra/deposits.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ func ProcessDepositRequests(ctx context.Context, beaconState state.BeaconState,
560560
return beaconState, nil
561561
}
562562

563-
// processDepositRequest processes the specific deposit receipt
563+
// processDepositRequest processes the specific deposit request
564564
// def process_deposit_request(state: BeaconState, deposit_request: DepositRequest) -> None:
565565
//
566566
// # Set deposit request start index

beacon-chain/core/electra/transition_no_verify_sig.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ func ProcessOperations(
8484
}
8585
st, err = ProcessDepositRequests(ctx, st, requests.Deposits)
8686
if err != nil {
87-
return nil, errors.Wrap(err, "could not process deposit receipts")
87+
return nil, errors.Wrap(err, "could not process deposit requests")
8888
}
8989
st, err = ProcessWithdrawalRequests(ctx, st, requests.Withdrawals)
9090
if err != nil {
91-
return nil, errors.Wrap(err, "could not process execution layer withdrawal requests")
91+
return nil, errors.Wrap(err, "could not process withdrawal requests")
9292
}
9393
if err := ProcessConsolidationRequests(ctx, st, requests.Consolidations); err != nil {
9494
return nil, fmt.Errorf("could not process consolidation requests: %w", err)

beacon-chain/state/state-native/getters_deposit_requests.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"github.com/prysmaticlabs/prysm/v5/runtime/version"
55
)
66

7-
// DepositRequestsStartIndex is used for returning the deposit receipts start index which is used for eip6110
7+
// DepositRequestsStartIndex is used for returning the deposit requests start index which is used for eip6110
88
func (b *BeaconState) DepositRequestsStartIndex() (uint64, error) {
99
if b.version < version.Electra {
1010
return 0, errNotSupported("DepositRequestsStartIndex", b.version)

encoding/ssz/htrutils.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ func WithdrawalSliceRoot(withdrawals []*enginev1.Withdrawal, limit uint64) ([32]
141141
return MixInLength(bytesRoot, bytesRootBufRoot), nil
142142
}
143143

144-
// DepositRequestsSliceRoot computes the HTR of a slice of deposit receipts.
144+
// DepositRequestsSliceRoot computes the HTR of a slice of deposit requests.
145145
// The limit parameter is used as input to the bitwise merkleization algorithm.
146146
func DepositRequestsSliceRoot(depositRequests []*enginev1.DepositRequest, limit uint64) ([32]byte, error) {
147147
return SliceRoot(depositRequests, limit)

0 commit comments

Comments
 (0)