File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -424,6 +424,9 @@ class WalletCompatibilityBackend(JSONBackend):
424
424
to the current version.
425
425
"""
426
426
427
+ def _getUpToDateClassName (self , pickledClassName ):
428
+ return pickledClassName .replace ('sovrin_client' , 'indy_client' )
429
+
427
430
def decode (self , string ):
428
431
raw = super ().decode (string )
429
432
# Note that backend.decode may be called not only for the whole object
@@ -434,7 +437,7 @@ def decode(self, string):
434
437
# a wallet class supporting backward compatibility
435
438
if isinstance (raw , dict ) and tags .OBJECT in raw :
436
439
clsName = raw [tags .OBJECT ]
437
- cls = loadclass (clsName )
440
+ cls = loadclass (self . _getUpToDateClassName ( clsName ) )
438
441
if hasattr (cls , 'makeRawCompatible' ) \
439
442
and callable (getattr (cls , 'makeRawCompatible' )):
440
443
cls .makeRawCompatible (raw )
You can’t perform that action at this time.
0 commit comments