File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 5
5
6
6
import algosdk , {
7
7
algosToMicroalgos ,
8
- decodeAddress ,
9
8
decodeUint64 ,
10
9
encodeAddress ,
11
10
AtomicTransactionComposer ,
@@ -438,7 +437,7 @@ export class SubtopiaRegistryClient {
438
437
registryID ,
439
438
new Uint8Array ( [
440
439
...getLockerBoxPrefix ( lockerType ) ,
441
- ...decodeAddress ( String ( ownerAddress ) ) . publicKey ,
440
+ ...ownerAddress . publicKey ,
442
441
] ) ,
443
442
)
444
443
. do ( )
@@ -486,7 +485,7 @@ export class SubtopiaRegistryClient {
486
485
appIndex : this . appID ,
487
486
name : new Uint8Array ( [
488
487
...getLockerBoxPrefix ( LockerType . CREATOR ) ,
489
- ...decodeAddress ( String ( newOwnerAddress ) ) . publicKey ,
488
+ ...newOwnerAddress . publicKey ,
490
489
] ) ,
491
490
} ,
492
491
] ;
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import algosdk, {
12
12
ABIType ,
13
13
ABIArrayDynamicType ,
14
14
ABIUintType ,
15
- encodeAddress ,
16
15
Address ,
17
16
} from "algosdk" ;
18
17
@@ -431,7 +430,7 @@ export function parseTokenProductGlobalState(input: AppState) {
431
430
for ( const key in input ) {
432
431
if ( keyMap [ key ] ) {
433
432
if ( keyMap [ key ] === "manager" ) {
434
- output [ keyMap [ key ] ] = encodeAddress (
433
+ output [ keyMap [ key ] ] = new Address (
435
434
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
436
435
// @ts -ignore
437
436
input [ key ] . valueRaw ,
You can’t perform that action at this time.
0 commit comments