Skip to content

Commit 7f8986c

Browse files
nit: fix naming (#1805)
* fix naming * update changelog --------- Co-authored-by: Steven Allen <steven@stebalien.com>
1 parent 1380a2e commit 7f8986c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

shared/CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## [Unreleased]
44

5+
- Rename `window_post_partitions_sectors` on both the `RegisteredPoStProof` and `RegisteredSealProof` types to `window_post_partition_sectors` to match the builtin actors (from @zhinqiangxu). This is a small breaking change.
6+
57
## 4.5.3 [2024-12-04]
68

79
- chore: remove the nv25-dev feature flag [#2093](https://github.com/filecoin-project/ref-fvm/pull/2093)

shared/src/sector/registered_proof.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ impl RegisteredPoStProof {
174174
}
175175
/// Returns the partition size, in sectors, associated with a proof type.
176176
/// The partition size is the number of sectors proven in a single PoSt proof.
177-
pub fn window_post_partitions_sector(self) -> Result<u64, String> {
177+
pub fn window_post_partition_sectors(self) -> Result<u64, String> {
178178
// Resolve to post proof and then compute size from that.
179179
use RegisteredPoStProof::*;
180180
match self {
@@ -219,7 +219,7 @@ impl RegisteredSealProof {
219219

220220
/// Returns the partition size, in sectors, associated with a proof type.
221221
/// The partition size is the number of sectors proven in a single PoSt proof.
222-
pub fn window_post_partitions_sector(self) -> Result<u64, String> {
222+
pub fn window_post_partition_sectors(self) -> Result<u64, String> {
223223
// Resolve to seal proof and then compute size from that.
224224
use RegisteredSealProof::*;
225225
match self {

0 commit comments

Comments
 (0)