Remove UnmarshalCBOR functions
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
parent
2364a73b92
commit
1aa3cf3043
@ -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 {
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user