diff --git a/api/apistruct/struct.go b/api/apistruct/struct.go index 285a94b2f..cd5c6797a 100644 --- a/api/apistruct/struct.go +++ b/api/apistruct/struct.go @@ -175,7 +175,7 @@ type StorageMinerStruct struct { ActorAddress func(context.Context) (address.Address, error) `perm:"read"` ActorSectorSize func(context.Context, address.Address) (abi.SectorSize, error) `perm:"read"` - MiningBase func(context.Context) (*types.TipSet, error) + MiningBase func(context.Context) (*types.TipSet, error) `perm:"read"` MarketImportDealData func(context.Context, cid.Cid, string) error `perm:"write"` MarketListDeals func(ctx context.Context) ([]storagemarket.StorageDeal, error) `perm:"read"` diff --git a/api/apistruct/struct_test.go b/api/apistruct/struct_test.go new file mode 100644 index 000000000..9f5f58360 --- /dev/null +++ b/api/apistruct/struct_test.go @@ -0,0 +1,9 @@ +package apistruct + +import "testing" + +func TestPermTags(t *testing.T) { + _ = PermissionedFullAPI(&FullNodeStruct{}) + _ = PermissionedStorMinerAPI(&StorageMinerStruct{}) + _ = PermissionedWorkerAPI(&WorkerStruct{}) +}