Skip to content

Wrong Keyer implementation for Address in fil_actor_shared #150

@hanabi1224

Description

@hanabi1224

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions