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

Fix: EAM: Successfully create actors over placeholders #1058

Merged
merged 1 commit into from
Jan 14, 2023
Merged

Conversation

arajasek
Copy link
Contributor

@arajasek arajasek merged commit cc264f7 into next Jan 14, 2023
@arajasek arajasek deleted the asr/fix-eam branch January 14, 2023 16:38
return Ok(Return { actor_id: id, robust_address: None, eth_address: new_addr });
// Try to resurrect it if it is already an EVM actor (must be "dead")
let caller_code_cid = rt.get_actor_code_cid(&id).expect("failed to lookup actor code");
if let Some(Type::EVM) = rt.resolve_builtin_actor_type(&caller_code_cid) {
Copy link
Member

Choose a reason for hiding this comment

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

If the type isn't "embryo", we should probably abort early.

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