@@ -14,7 +14,6 @@ import { pollForResponse, PollStrategyFactory, strategy } from './polling';
14
14
import { Principal } from '@dfinity/principal' ;
15
15
import { RequestId } from './request_id' ;
16
16
import { toHex } from './utils/buffer' ;
17
- import { CreateCertificateOptions } from './certificate' ;
18
17
import managementCanisterIdl from './canisters/management_idl' ;
19
18
import _SERVICE from './canisters/management_service' ;
20
19
@@ -130,11 +129,6 @@ export interface ActorConfig extends CallConfig {
130
129
args : unknown [ ] ,
131
130
callConfig : CallConfig ,
132
131
) : Partial < CallConfig > | void ;
133
-
134
- /**
135
- * Polyfill for BLS Certificate verification in case wasm is not supported
136
- */
137
- blsVerify ?: CreateCertificateOptions [ 'blsVerify' ] ;
138
132
}
139
133
140
134
// TODO: move this to proper typing when Candid support TypeScript.
@@ -308,7 +302,7 @@ export class Actor {
308
302
func . annotations . push ( ACTOR_METHOD_WITH_HTTP_DETAILS ) ;
309
303
}
310
304
311
- this [ methodName ] = _createActorMethod ( this , methodName , func , config . blsVerify ) ;
305
+ this [ methodName ] = _createActorMethod ( this , methodName , func ) ;
312
306
}
313
307
}
314
308
}
@@ -369,12 +363,7 @@ export type ActorConstructor = new (config: ActorConfig) => ActorSubclass;
369
363
370
364
export const ACTOR_METHOD_WITH_HTTP_DETAILS = 'http-details' ;
371
365
372
- function _createActorMethod (
373
- actor : Actor ,
374
- methodName : string ,
375
- func : IDL . FuncClass ,
376
- blsVerify ?: CreateCertificateOptions [ 'blsVerify' ] ,
377
- ) : ActorMethod {
366
+ function _createActorMethod ( actor : Actor , methodName : string , func : IDL . FuncClass ) : ActorMethod {
378
367
let caller : ( options : CallConfig , ...args : unknown [ ] ) => Promise < unknown > ;
379
368
if ( func . annotations . includes ( 'query' ) || func . annotations . includes ( 'composite_query' ) ) {
380
369
caller = async ( options , ...args ) => {
@@ -437,7 +426,7 @@ function _createActorMethod(
437
426
}
438
427
439
428
const pollStrategy = pollingStrategyFactory ( ) ;
440
- const responseBytes = await pollForResponse ( agent , ecid , requestId , pollStrategy , blsVerify ) ;
429
+ const responseBytes = await pollForResponse ( agent , ecid , requestId , pollStrategy ) ;
441
430
const shouldIncludeHttpDetails = func . annotations . includes ( ACTOR_METHOD_WITH_HTTP_DETAILS ) ;
442
431
443
432
if ( responseBytes !== undefined ) {
0 commit comments