File tree Expand file tree Collapse file tree 4 files changed +5
-17
lines changed Expand file tree Collapse file tree 4 files changed +5
-17
lines changed Original file line number Diff line number Diff line change @@ -258,19 +258,7 @@ export class SequencePasskeySigner implements signers.SapientSigner {
258
258
return signatureBytes
259
259
}
260
260
261
- async buildValidationSignature ( signatureBytes : string ) : Promise < string | undefined > {
262
- console . log ( 'passkey buildValidationSignature' , signatureBytes )
263
- try {
264
- if ( await this . isDeployed ( ) ) {
265
- return undefined
266
- }
267
- } catch ( e ) {
268
- // Ignore. Assume not deployed
269
- }
270
- return this . buildEIP6492Signature ( signatureBytes )
271
- }
272
-
273
- private async buildEIP6492Signature ( signature : string ) : Promise < string > {
261
+ async buildEIP6492Signature ( signature : string ) : Promise < string > {
274
262
const deployTransactions = await this . buildDeployTransaction ( )
275
263
if ( ! deployTransactions || deployTransactions ?. transactions . length === 0 ) {
276
264
throw new Error ( 'Cannot build EIP-6492 signature without deploy transaction' )
Original file line number Diff line number Diff line change @@ -186,9 +186,9 @@ export class Orchestrator {
186
186
. then ( async signature => {
187
187
const suffix = s . suffix ( )
188
188
let validationSignature
189
- if ( s . buildValidationSignature ) {
189
+ if ( s . buildEIP6492Signature ) {
190
190
try {
191
- validationSignature = await s . buildValidationSignature ( signature )
191
+ validationSignature = await s . buildEIP6492Signature ( signature )
192
192
} catch ( e ) {
193
193
// Log and ignore
194
194
console . warn ( `signer ${ saddr } failed to build validation signature: ${ e } ` )
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export interface SapientSigner {
28
28
/**
29
29
* Build a validation signature for an undeployed contract signer.
30
30
*/
31
- buildValidationSignature ? ( signatureBytes : ethers . BytesLike ) : Promise < ethers . BytesLike | undefined > ;
31
+ buildEIP6492Signature ? ( signature : ethers . BytesLike ) : Promise < ethers . BytesLike | undefined > ;
32
32
33
33
/**
34
34
* Notify the signer of a status change.
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ describe('Orchestrator', () => {
100
100
suffix ( ) : ethers . BytesLike {
101
101
return new Uint8Array ( [ 2 ] )
102
102
}
103
- async buildValidationSignature ( signature : string ) {
103
+ async buildEIP6492Signature ( signature : string ) {
104
104
return signature + 'validation'
105
105
}
106
106
}
You can’t perform that action at this time.
0 commit comments