-
Notifications
You must be signed in to change notification settings - Fork 159
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
Init actor implementation #282
Conversation
vm/actor/src/builtin/init/state.rs
Outdated
None => return Err(HamtError::Custom("address not found")), | ||
}; | ||
|
||
Ok(Address::new_id(actor_id.0).unwrap()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any particular reason for the unwrap()
usage here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because that can't realistically fail and I didn't want to change the error type, but I'll change
vm/actor/src/builtin/init/state.rs
Outdated
|
||
let actor_id: ActorID = match map.get(&addr.hash_key())? { | ||
Some(id) => id, | ||
None => return Err(HamtError::Custom("address not found")), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small nit: are we capitalizing error messages? Whichever it is I think we should keep consistent.
Summary of changes
Changes introduced in this pull request:
Reference issue to close (if applicable)
Other information and links