@@ -59,7 +59,7 @@ func (a *BuiltinActors) IsActor(actorCode cid.Cid, actorName string) bool {
59
59
// Try the latest actors' version first
60
60
for _ , actorCids := range a .Metadata .ActorsNameCidMapByVersion {
61
61
if cid , ok := actorCids [actorName ]; ok {
62
- if actorCode == cid {
62
+ if actorCode . String () == cid . String () {
63
63
return true
64
64
}
65
65
}
@@ -76,7 +76,7 @@ func (a *BuiltinActors) IsActor(actorCode cid.Cid, actorName string) bool {
76
76
func (a * BuiltinActors ) GetActorNameFromCid (actorCode cid.Cid ) (string , error ) {
77
77
// Try the latest actors' version first
78
78
for name , code := range a .Metadata .ActorsNameCidMapByVersion [a .Metadata .Version ] {
79
- if actorCode == code {
79
+ if actorCode . String () == code . String () {
80
80
return name , nil
81
81
}
82
82
}
@@ -103,7 +103,7 @@ func (a *BuiltinActors) GetActorCid(name string) (cid.Cid, error) {
103
103
func (a * BuiltinActors ) GetActorNameFromCidByVersion (actorCode cid.Cid , version network.Version ) (string , error ) {
104
104
// Try the latest actors' version first
105
105
for name , code := range a .Metadata .ActorsNameCidMapByVersion [version ] {
106
- if actorCode == code {
106
+ if actorCode . String () == code . String () {
107
107
return name , nil
108
108
}
109
109
}
@@ -140,7 +140,7 @@ func (a *BuiltinActors) getActorCidByVersionFallback(name string) (cid.Cid, erro
140
140
func (a * BuiltinActors ) getActorNameFromCidByVersionFallback (actorCode cid.Cid ) (string , error ) {
141
141
for _ , actorCids := range a .Metadata .ActorsNameCidMapByVersion {
142
142
for name , cid := range actorCids {
143
- if actorCode == cid {
143
+ if actorCode . String () == cid . String () {
144
144
return name , nil
145
145
}
146
146
}
0 commit comments