filecoin-project / filecoin-project/builtin-actors

Replace Array type alias with abstraction

Open
#1,529 0 comments 0 reactions 1 assignee Claimed by @aarshkshah1992 View on GitHub
cleanup help wanted
Dominant language
Rust
Stars
96
Forks
94
Avg merge
6d 17h
Merged PRs (30d)
3

Description

The Array type is just an alias for AMT. This lack of abstraction can lead to issues like #1346. Also, exposing the amt package errors directly causes a bunch of bloat in users that need to wrap and attach exit codes.

Create an `Array2` type following the same pattern as `Map2` and replace all uses of Array. Simplify all the `map_err` wrapping points that result from amt errors.

We can rename `Array2` to `Array` once that name becomes available again.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.