Skip to content

Commit e592c6c

Browse files
authored
Fix circular know-type refs (#2509)
1 parent ef37586 commit e592c6c

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

packages/types-known/src/spec/centrifuge-chain.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import { OverrideVersionedType } from '@polkadot/types/types';
66

77
const sharedTypes = {
8-
Address: 'GenericAddress',
8+
Address: 'LookupSource',
99
AnchorData: {
1010
anchoredBlock: 'u64',
1111
docRoot: 'H256',
@@ -15,7 +15,6 @@ const sharedTypes = {
1515
key: 'Hash',
1616
price: 'Balance'
1717
},
18-
LookupSource: 'GenericAddress',
1918
MultiAccountData: {
2019
deposit: 'Balance',
2120
depositor: 'AccountId',

packages/types-known/src/spec/kusama.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,12 @@ const versioned: OverrideVersionedType[] = [
1818
// 1020 is first CC3
1919
minmax: [1019, 1031],
2020
types: {
21-
Address: 'GenericAddress',
21+
Address: 'LookupSource',
2222
BalanceLock: 'BalanceLockTo212',
2323
CompactAssignments: 'CompactAssignmentsTo257',
2424
DispatchError: 'DispatchErrorTo198',
2525
DispatchInfo: 'DispatchInfoTo244',
2626
Keys: 'SessionKeys5',
27-
LookupSource: 'Address',
2827
Multiplier: 'Fixed64',
2928
OpenTip: 'OpenTipTo225',
3029
ReferendumInfo: 'ReferendumInfoTo239',
@@ -37,12 +36,11 @@ const versioned: OverrideVersionedType[] = [
3736
{
3837
minmax: [1032, 1042],
3938
types: {
40-
Address: 'GenericAddress',
39+
Address: 'LookupSource',
4140
BalanceLock: 'BalanceLockTo212',
4241
CompactAssignments: 'CompactAssignmentsTo257',
4342
DispatchInfo: 'DispatchInfoTo244',
4443
Keys: 'SessionKeys5',
45-
LookupSource: 'Address',
4644
Multiplier: 'Fixed64',
4745
OpenTip: 'OpenTipTo225',
4846
ReferendumInfo: 'ReferendumInfoTo239',
@@ -56,12 +54,11 @@ const versioned: OverrideVersionedType[] = [
5654
// actual at 1045 (1043-1044 is dev)
5755
minmax: [1043, 1045],
5856
types: {
59-
Address: 'GenericAddress',
57+
Address: 'LookupSource',
6058
BalanceLock: 'BalanceLockTo212',
6159
CompactAssignments: 'CompactAssignmentsTo257',
6260
DispatchInfo: 'DispatchInfoTo244',
6361
Keys: 'SessionKeys5',
64-
LookupSource: 'Address',
6562
Multiplier: 'Fixed64',
6663
OpenTip: 'OpenTipTo225',
6764
ReferendumInfo: 'ReferendumInfoTo239',

0 commit comments

Comments
 (0)