Skip to content

Commit 068e0a4

Browse files
committed
remove unnecessary validations
1 parent 5c24b48 commit 068e0a4

File tree

4 files changed

+4
-20
lines changed

4 files changed

+4
-20
lines changed

packages-ts/gauntlet-starknet-argent/src/commands/account/deploy.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ const makeContractInput = async (input: UserInput, context: ExecutionContext): P
1818
return []
1919
}
2020

21-
const validate: Validation<UserInput> = async (input) => {
22-
return true
23-
}
24-
2521
const beforeExecute: BeforeExecute<UserInput, ContractInput> = (context, input, deps) => async () => {
2622
deps.logger.info(`About to deploy an Argent Account Contract`)
2723
}
@@ -34,7 +30,7 @@ const commandConfig: ExecuteCommandConfig<UserInput, ContractInput> = {
3430
},
3531
makeUserInput,
3632
makeContractInput,
37-
validations: [validate],
33+
validations: [],
3834
loadContract: accountContractLoader,
3935
hooks: {
4036
beforeExecute,

packages-ts/gauntlet-starknet-argent/src/commands/account/initialize.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ const makeContractInput = async (input: UserInput): Promise<ContractInput> => {
3333
return [input.publicKey, 0]
3434
}
3535

36-
const validate: Validation<UserInput> = async (input) => {
37-
return true
38-
}
39-
4036
const beforeExecute: BeforeExecute<UserInput, ContractInput> = (context, input, deps) => async () => {
4137
deps.logger.info(`About to deploy an Account Contract with public key ${input.contract[0]}`)
4238
if (input.user.privateKey) {
@@ -66,7 +62,7 @@ const commandConfig: ExecuteCommandConfig<UserInput, ContractInput> = {
6662
},
6763
makeUserInput,
6864
makeContractInput,
69-
validations: [validate],
65+
validations: [],
7066
loadContract: accountContractLoader,
7167
hooks: {
7268
beforeExecute,

packages-ts/gauntlet-starknet-starkgate/src/commands/token/deploy.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ const makeContractInput = async (input: UserInput, context: ExecutionContext): P
4949
]
5050
}
5151

52-
const validate: Validation<UserInput> = async (input) => {
53-
return true
54-
}
55-
5652
const beforeExecute: BeforeExecute<UserInput, ContractInput> = (context, input, deps) => async () => {
5753
deps.logger.info(`About to deploy an ERC20 Token Contract with the following details:
5854
${input.contract}
@@ -70,7 +66,7 @@ const commandConfig: ExecuteCommandConfig<UserInput, ContractInput> = {
7066
},
7167
makeUserInput,
7268
makeContractInput,
73-
validations: [validate],
69+
validations: [],
7470
loadContract: contractLoader,
7571
hooks: {
7672
beforeExecute,

packages-ts/gauntlet-starknet-starkgate/src/commands/token/mint.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ const makeContractInput = async (input: UserInput): Promise<ContractInput> => {
2424
return [input.recipient, bnToUint256(input.amount)]
2525
}
2626

27-
const validate: Validation<UserInput> = async (input) => {
28-
return true
29-
}
30-
3127
const beforeExecute: BeforeExecute<UserInput, ContractInput> = (context, input, deps) => async () => {
3228
deps.logger.info(`About to mint an ERC20 Token Contract with the following details:
3329
${input.contract}
@@ -46,7 +42,7 @@ const commandConfig: ExecuteCommandConfig<UserInput, ContractInput> = {
4642
internalFunction: 'permissionedMint',
4743
makeUserInput,
4844
makeContractInput,
49-
validations: [validate],
45+
validations: [],
5046
loadContract: contractLoader,
5147
hooks: {
5248
beforeExecute,

0 commit comments

Comments
 (0)