Update dependencies and refactor Privy integration in Web3Proxy. Replace @privy-io/server-auth with @privy-io/node, introducing authorization context handling for improved transaction security. Modify transaction methods to align with the new SDK structure, ensuring compatibility and enhanced logging for wallet operations.
This commit is contained in:
@@ -10,7 +10,7 @@ test('getAuthorizationSignature generates valid signatures', async () => {
|
||||
const signature = getAuthorizationSignature({ url, body })
|
||||
|
||||
assert.ok(signature && typeof signature === 'string', 'Signature should be a string')
|
||||
assert.ok(signature.length > 0, 'Signature should not be empty')
|
||||
assert.ok((signature as string).length > 0, 'Signature should not be empty')
|
||||
|
||||
// Check if signature matches base64 pattern
|
||||
const base64Regex = /^[A-Za-z0-9+/]+={0,2}$/
|
||||
|
||||
Reference in New Issue
Block a user