lotus/chain/actors/builtin/embryo.go

13 lines
216 B
Go
Raw Normal View History

2022-10-22 18:10:52 +00:00
package builtin
import (
"github.com/ipfs/go-cid"
"github.com/filecoin-project/lotus/chain/actors"
)
func IsEmbryo(c cid.Cid) bool {
name, _, ok := actors.GetActorMetaByCode(c)
2022-11-11 03:20:27 +00:00
return ok && name == "embryo"
2022-10-22 18:10:52 +00:00
}