Skip to content

Commit

Permalink
bump for v4 types data
Browse files Browse the repository at this point in the history
  • Loading branch information
BitHighlander committed Mar 7, 2023
1 parent 1f94886 commit b895b33
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export class LegacyWCService {
})
const result = response?.serialized
this.connector.approveRequest({ id: request.id, result })
} else if (request.method === 'eth_signTypedData') {
} else if (request.method === 'eth_signTypedData' || request.method === 'eth_signTypedData_v4') {
if (!this.wallet) throw Error('wallet not init!')
if (!this.wallet.ethSignTypedData) throw Error('wallet not latest version ethSignTypedData!')
// TODO: verify param[0] matches given address
Expand Down

0 comments on commit b895b33

Please sign in to comment.