@@ -32,9 +32,9 @@ export enum FunctionSignatures {
32
32
* function submitZKPResponse(uint64 requestId, uint256[] calldata inputs,
33
33
* uint256[2] calldata a, uint256[2][2] calldata b, uint256[2] calldata c) public
34
34
*/
35
- SumbitZKPResponseV1 = 'b68967e2' ,
35
+ SubmitZKPResponseV1 = 'b68967e2' ,
36
36
//function submitZKPResponseV2(tuple[](uint64 requestId,bytes zkProof,bytes data),bytes crossChainProof)
37
- SumbitZKPResponseV2 = 'ade09fcd'
37
+ SubmitZKPResponseV2 = 'ade09fcd'
38
38
}
39
39
/**
40
40
* OnChainZKPVerifierOptions represents OnChainZKPVerifier options
@@ -83,9 +83,9 @@ export class OnChainZKPVerifier implements IOnChainZKPVerifier {
83
83
txData : ContractInvokeTransactionData ,
84
84
zkProofResponse : ZeroKnowledgeProofResponse
85
85
) : Promise < JsonDocumentObjectValue [ ] > {
86
- if ( txData . method_id . replace ( '0x' , '' ) !== FunctionSignatures . SumbitZKPResponseV1 ) {
86
+ if ( txData . method_id . replace ( '0x' , '' ) !== FunctionSignatures . SubmitZKPResponseV1 ) {
87
87
throw new Error (
88
- `prepareTxArgsSubmitV1 function doesn't implement requested method id. Only '0x${ FunctionSignatures . SumbitZKPResponseV1 } ' is supported.`
88
+ `prepareTxArgsSubmitV1 function doesn't implement requested method id. Only '0x${ FunctionSignatures . SubmitZKPResponseV1 } ' is supported.`
89
89
) ;
90
90
}
91
91
const requestID = zkProofResponse . id ;
@@ -117,9 +117,9 @@ export class OnChainZKPVerifier implements IOnChainZKPVerifier {
117
117
if ( ! chainConfig ) {
118
118
throw new Error ( `config for chain id ${ txData . chain_id } was not found` ) ;
119
119
}
120
- if ( txData . method_id . replace ( '0x' , '' ) !== FunctionSignatures . SumbitZKPResponseV1 ) {
120
+ if ( txData . method_id . replace ( '0x' , '' ) !== FunctionSignatures . SubmitZKPResponseV1 ) {
121
121
throw new Error (
122
- `submitZKPResponse function doesn't implement requested method id. Only '0x${ FunctionSignatures . SumbitZKPResponseV1 } ' is supported.`
122
+ `submitZKPResponse function doesn't implement requested method id. Only '0x${ FunctionSignatures . SubmitZKPResponseV1 } ' is supported.`
123
123
) ;
124
124
}
125
125
const provider = new JsonRpcProvider ( chainConfig . url , chainConfig . chainId ) ;
@@ -174,9 +174,9 @@ export class OnChainZKPVerifier implements IOnChainZKPVerifier {
174
174
if ( ! chainConfig ) {
175
175
throw new Error ( `config for chain id ${ txData . chain_id } was not found` ) ;
176
176
}
177
- if ( txData . method_id . replace ( '0x' , '' ) !== FunctionSignatures . SumbitZKPResponseV2 ) {
177
+ if ( txData . method_id . replace ( '0x' , '' ) !== FunctionSignatures . SubmitZKPResponseV2 ) {
178
178
throw new Error (
179
- `submitZKPResponseV2 function doesn't implement requested method id. Only '0x${ FunctionSignatures . SumbitZKPResponseV2 } ' is supported.`
179
+ `submitZKPResponseV2 function doesn't implement requested method id. Only '0x${ FunctionSignatures . SubmitZKPResponseV2 } ' is supported.`
180
180
) ;
181
181
}
182
182
if ( ! this . _opts ?. didResolverUrl ) {
@@ -223,9 +223,9 @@ export class OnChainZKPVerifier implements IOnChainZKPVerifier {
223
223
txData : ContractInvokeTransactionData ,
224
224
zkProofResponses : ZeroKnowledgeProofResponse [ ]
225
225
) : Promise < JsonDocumentObjectValue [ ] > {
226
- if ( txData . method_id . replace ( '0x' , '' ) !== FunctionSignatures . SumbitZKPResponseV2 ) {
226
+ if ( txData . method_id . replace ( '0x' , '' ) !== FunctionSignatures . SubmitZKPResponseV2 ) {
227
227
throw new Error (
228
- `submit cross chain doesn't implement requested method id. Only '0x${ FunctionSignatures . SumbitZKPResponseV2 } ' is supported.`
228
+ `submit cross chain doesn't implement requested method id. Only '0x${ FunctionSignatures . SubmitZKPResponseV2 } ' is supported.`
229
229
) ;
230
230
}
231
231
if ( ! this . _opts ?. didResolverUrl ) {
0 commit comments