2019-07-22 16:08:54 +00:00
|
|
|
package actors
|
|
|
|
|
|
|
|
import (
|
2019-12-19 20:13:17 +00:00
|
|
|
"github.com/filecoin-project/go-address"
|
2019-10-18 04:47:41 +00:00
|
|
|
"github.com/filecoin-project/lotus/chain/actors/aerrors"
|
2019-07-22 16:08:54 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func NewIDAddress(id uint64) (address.Address, ActorError) {
|
|
|
|
a, err := address.NewIDAddress(id)
|
|
|
|
if err != nil {
|
|
|
|
return address.Undef, aerrors.Escalate(err, "could not create ID Address")
|
|
|
|
}
|
|
|
|
return a, nil
|
|
|
|
}
|