2019-07-22 16:08:54 +00:00
|
|
|
package actors
|
|
|
|
|
|
|
|
import (
|
2019-10-18 04:47:41 +00:00
|
|
|
"github.com/filecoin-project/lotus/chain/actors/aerrors"
|
|
|
|
"github.com/filecoin-project/lotus/chain/address"
|
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
|
|
|
|
}
|