File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,8 @@ export interface CreateCheckInOutSignatureArgs {
106
106
domain : TypedDataDomain ;
107
107
/** Ethereum local account */
108
108
account : Account ;
109
+ /** Account address override */
110
+ address ?: Address ;
109
111
}
110
112
111
113
/**
@@ -231,13 +233,15 @@ export const createCheckInOutSignature = async ({
231
233
offerId,
232
234
domain,
233
235
account,
236
+ address,
234
237
} : CreateCheckInOutSignatureArgs ) : Promise < Hash > =>
235
238
await account . signTypedData ( {
239
+ ...( address ? { account : address } : { } ) ,
236
240
domain,
237
241
types : checkInOutEip712Types ,
238
242
primaryType : 'Voucher' ,
239
243
message : {
240
244
id : offerId ,
241
- signer : account . address ,
245
+ signer : address ? address : account . address ,
242
246
} ,
243
247
} ) ;
You can’t perform that action at this time.
0 commit comments