diff --git a/chain-cli/chaincode-template/e2e/__snapshots__/api.spec.ts.snap b/chain-cli/chaincode-template/e2e/__snapshots__/api.spec.ts.snap index c0dd9129ed..44f8cf36e8 100644 --- a/chain-cli/chaincode-template/e2e/__snapshots__/api.spec.ts.snap +++ b/chain-cli/chaincode-template/e2e/__snapshots__/api.spec.ts.snap @@ -3304,7 +3304,7 @@ The key is generated by the caller and should be unique for each DTO. You can us }, }, { - "description": " Transaction updates the chain (submit). Allowed roles: SUBMIT.", + "description": " Transaction updates the chain (submit). Allowed roles: CURATOR.", "dtoSchema": { "description": "Contains properties of vesting token to be created.", "properties": { diff --git a/chain-cli/chaincode-template/src/token/GalaChainTokenContract.ts b/chain-cli/chaincode-template/src/token/GalaChainTokenContract.ts index 91b2383262..dc1173a4bd 100644 --- a/chain-cli/chaincode-template/src/token/GalaChainTokenContract.ts +++ b/chain-cli/chaincode-template/src/token/GalaChainTokenContract.ts @@ -767,7 +767,8 @@ export default class GalaChainTokenContract extends GalaContract { @Submit({ in: CreateVestingTokenDto, - out: VestingToken + out: VestingToken, + ...requireCuratorAuth }) public async CreateVestingToken(ctx: GalaChainContext, dto: CreateVestingTokenDto): Promise { const authorities = dto.tokenClass.authorities diff --git a/chain-cli/chaincode-template/src/token/__snapshots__/api.spec.ts.snap b/chain-cli/chaincode-template/src/token/__snapshots__/api.spec.ts.snap index ae277a4545..1a4bbe8fb8 100644 --- a/chain-cli/chaincode-template/src/token/__snapshots__/api.spec.ts.snap +++ b/chain-cli/chaincode-template/src/token/__snapshots__/api.spec.ts.snap @@ -1821,7 +1821,7 @@ The key is generated by the caller and should be unique for each DTO. You can us }, }, { - "description": " Transaction updates the chain (submit). Allowed roles: SUBMIT.", + "description": " Transaction updates the chain (submit). Allowed roles: CURATOR.", "dtoSchema": { "description": "Contains properties of vesting token to be created.", "properties": {