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 new methods and types for FEVM #143

Merged
merged 2 commits into from
Jan 6, 2023
Merged

Add new methods and types for FEVM #143

merged 2 commits into from
Jan 6, 2023

Conversation

arajasek
Copy link
Contributor

@arajasek arajasek commented Jan 2, 2023

New types, methods, and actors that have been added to the built-in actors.

"golang.org/x/xerrors"
)

type CborBytes []byte
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should consider putting this into cbor-gen (and using cborgen's ReadByteArray/WriteByteArray.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...future...improvement...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return err
}

if extra > cbg.ByteArrayMaxLen {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably too small (e.g., it won't fit an entire smart contract).

Copy link
Contributor Author

@arajasek arajasek Jan 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, if so we have a more serious problem -- this limit applies to pretty much every type in Filecoin (as implemented by Golang clients), including the Message itself. That means Lotus won't consider such messages valid.

(what happens here in GST is less important since it's only used for UX)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Steven is confused. Steven will go back to the caverns of rust.

(the max here is ~2MiB and isn't a problem)

@arajasek arajasek merged commit 5a127bb into master Jan 6, 2023
@arajasek arajasek deleted the asr/new-types branch January 6, 2023 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants