Skip to content

Commit e3dca62

Browse files
authored
fix: verification of signature in a Braavos account with a juno node … (#1426)
* fix: verification of signature in a Braavos account with a juno node is throwing an error * fix: solved also for old accounts
1 parent 92808fe commit e3dca62

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/provider/rpc.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -577,9 +577,12 @@ export class RpcProvider implements ProviderInterface {
577577
'0x00', // OpenZeppelin 0.7.0 to 0.9.0 invalid signature
578578
],
579579
error: [
580-
'argent/invalid-signature', // ArgentX 0.3.0 to 0.3.1
581-
'is invalid, with respect to the public key', // OpenZeppelin until 0.6.1, Braavos 0.0.11
582-
'INVALID_SIG', // Braavos 1.0.0
580+
'argent/invalid-signature',
581+
'0x617267656e742f696e76616c69642d7369676e6174757265', // ArgentX 0.3.0 to 0.3.1
582+
'is invalid, with respect to the public key',
583+
'0x697320696e76616c6964', // OpenZeppelin until 0.6.1, Braavos 0.0.11
584+
'INVALID_SIG',
585+
'0x494e56414c49445f534947', // Braavos 1.0.0
583586
],
584587
};
585588
let error: any;

0 commit comments

Comments
 (0)