File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { createLogger } from '@/logger';
2
2
import { type Request , type Response } from 'express' ;
3
3
import { validationResult } from 'express-validator' ;
4
4
import deterministicHash from 'deterministic-object-hash' ;
5
- import { type Hex , keccak256 , recoverAddress , toHex } from 'viem' ;
5
+ import { type Hex , keccak256 , recoverMessageAddress , toHex } from 'viem' ;
6
6
import { indexerClient } from './ext/indexer' ;
7
7
import { env } from './env' ;
8
8
@@ -47,8 +47,8 @@ export async function recoverSignerAddress<T>(
47
47
obj : T ,
48
48
signature : Hex
49
49
) : Promise < Hex > {
50
- return await recoverAddress ( {
51
- hash : await deterministicKeccakHash ( obj ) ,
50
+ return await recoverMessageAddress ( {
51
+ message : await deterministicKeccakHash ( obj ) ,
52
52
signature,
53
53
} ) ;
54
54
}
You can’t perform that action at this time.
0 commit comments