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

Wrong Keyer implementation for Address in fil_actor_shared #150

Open
hanabi1224 opened this issue Jun 27, 2023 · 0 comments
Open

Wrong Keyer implementation for Address in fil_actor_shared #150

hanabi1224 opened this issue Jun 27, 2023 · 0 comments

Comments

@hanabi1224
Copy link
Contributor

Describe the bug

The current implementation is

impl Keyer for Address {
    fn key(&self) -> BytesKey {
        self.to_bytes().into()
    }
}

to match abi.IdAddrKey in Go code

The correct implementation should be

impl Keyer for Address {
    fn key(&self) -> BytesKey {
        self.payload_bytes()
    }
}

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Run '....'
  3. See error

Log output

Log Output
paste log output...

Expected behaviour

Screenshots

Environment (please complete the following information):

  • OS:
  • Rust version(e.g. rustc --version)
  • Branch/commit

Other information and links

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

No branches or pull requests

1 participant