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

test: check compatibility for three more RPC calls #3698

Merged
merged 12 commits into from
Nov 22, 2023

Conversation

lemmih
Copy link
Contributor

@lemmih lemmih commented Nov 9, 2023

Summary of changes

Changes introduced in this pull request:

  • StateLookupID
  • StateNetworkVersion
  • WalletBalance
  • Changed SignatureType to always be encoded as an integer. Lotus requires this in certain places.
  • Test wallet import/export roundtripping in a more flexible way.

Reference issue to close (if applicable)

Part of #3639

Other information and links

Change checklist

  • I have performed a self-review of my own code,
  • I have made corresponding changes to the documentation,
  • I have added tests that prove my fix is effective or that my feature works (if possible),
  • I have made sure the CHANGELOG is up-to-date. All user-facing changes should be reflected in this document.

@lemmih lemmih marked this pull request as ready for review November 9, 2023 15:23
@lemmih lemmih requested a review from a team as a code owner November 9, 2023 15:23
@lemmih lemmih requested review from hanabi1224 and aatifsyed and removed request for a team November 9, 2023 15:23
src/lotus_json/signature_type.rs Outdated Show resolved Hide resolved
@@ -4,11 +4,16 @@
use super::*;
use crate::shim::crypto::SignatureType;

// Lotus uses signature types under two names: `KeyType` and `SigType`.
// `KeyType` can be deserialized from a string but `SigType` must always be an
// integer. For more information, see
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't we add lenses for SignatureType to cover these two cases?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure what you mean by this. Matching Lotus' behavior exactly will require some refactoring that is out of scope of this PR.

@lemmih lemmih marked this pull request as draft November 10, 2023 08:16
@lemmih lemmih marked this pull request as ready for review November 22, 2023 10:17
@lemmih lemmih requested a review from aatifsyed November 22, 2023 10:17
@lemmih lemmih added this pull request to the merge queue Nov 22, 2023
Merged via the queue into main with commit 394d9af Nov 22, 2023
60 checks passed
@lemmih lemmih deleted the lemmih/yet-more-missing-rpc-methods-2 branch November 22, 2023 15:38
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