diff --git a/chain/actors/actor_init.go b/chain/actors/actor_init.go index 2424ecd7a..4e5c1fe57 100644 --- a/chain/actors/actor_init.go +++ b/chain/actors/actor_init.go @@ -43,14 +43,6 @@ type ExecParams struct { Params []byte } -func (ep *ExecParams) UnmarshalCBOR(b []byte) (int, error) { - if err := cbor.DecodeInto(b, ep); err != nil { - return 0, err - } - - return len(b), nil -} - func CreateExecParams(act cid.Cid, obj interface{}) ([]byte, error) { encparams, err := cbor.DumpObject(obj) if err != nil { diff --git a/chain/actors/actor_storagemarket.go b/chain/actors/actor_storagemarket.go index 772d8d9f9..2ae622a09 100644 --- a/chain/actors/actor_storagemarket.go +++ b/chain/actors/actor_storagemarket.go @@ -34,14 +34,6 @@ type CreateStorageMinerParams struct { PeerID peer.ID } -func (p *CreateStorageMinerParams) UnmarshalCBOR(b []byte) (int, error) { - if err := cbor.DecodeInto(b, p); err != nil { - return 0, err - } - - return len(b), nil -} - func (sma StorageMarketActor) CreateStorageMiner(act *types.Actor, vmctx types.VMContext, params *CreateStorageMinerParams) (types.InvokeRet, error) { if !SupportedSectorSize(params.SectorSize) { //Fatal("Unsupported sector size")