Skip to content

Commit

Permalink
fix walletconnect signing raw byte arrays (#636)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrnerdhair authored Jun 3, 2023
1 parent ce2404b commit 01172a0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ export class LegacyWCService {
: inputHexString

if (request.payload && request.payload.params[0])
message = Buffer.from(strip0x(request.payload.params[0]), 'hex').toString('utf8')
message = Buffer.from(strip0x(request.payload.params[0]), 'hex')
if (request.params && request.params[0])
message = Buffer.from(strip0x(request.params[0]), 'hex').toString('utf8')
message = Buffer.from(strip0x(request.params[0]), 'hex')

if (!message) throw Error('failed to parse message!')

Expand Down

0 comments on commit 01172a0

Please sign in to comment.