lotus/chain/actors/builtin/embryo.go
2022-11-11 05:20:27 +02:00

13 lines
216 B
Go

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)
return ok && name == "embryo"
}