Skip to content

Commit a8d4837

Browse files
Merge pull request #5519 from BitGo/WIN-4302-3
fix(abstract-substrate): fix Material specName type
2 parents 319629c + 2971d82 commit a8d4837

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

modules/abstract-substrate/src/lib/iface.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import {
33
TransactionExplanation as BaseTransactionExplanation,
44
TransactionType,
55
} from '@bitgo/sdk-core';
6-
import { PolkadotSpecNameType } from '@bitgo/statics';
76
import { BaseTxInfo, DecodedUnsignedTx, TypeRegistry } from '@substrate/txwrapper-core/lib/types';
87

98
export { HexString } from '@polkadot/util/types';
@@ -112,7 +111,7 @@ export enum TransactionTypes {
112111
export interface Material {
113112
genesisHash: string;
114113
chainName: string;
115-
specName: PolkadotSpecNameType;
114+
specName: string;
116115
specVersion: number;
117116
txVersion: number;
118117
metadata: `0x${string}`;

modules/abstract-substrate/src/lib/transactionBuilder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
TransactionType,
1313
ValidityWindow,
1414
} from '@bitgo/sdk-core';
15-
import { BaseCoin as CoinConfig, PolkadotSpecNameType } from '@bitgo/statics';
15+
import { BaseCoin as CoinConfig } from '@bitgo/statics';
1616
import { UnsignedTransaction } from '@substrate/txwrapper-core';
1717
import { DecodedSignedTx, DecodedSigningPayload, TypeRegistry } from '@substrate/txwrapper-core/lib/types';
1818
import { decode } from '@substrate/txwrapper-polkadot';
@@ -344,7 +344,7 @@ export abstract class TransactionBuilder extends BaseTransactionBuilder {
344344
chainName: string,
345345
nonce: number,
346346
specVersion: number,
347-
specName: PolkadotSpecNameType,
347+
specName: string,
348348
transactionVersion: number,
349349
eraPeriod: number | undefined,
350350
tip: number | undefined

modules/abstract-substrate/src/lib/txnSchema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const BaseTransactionSchema = joi.object({
99
blockHash: joi.string().required(),
1010
genesisHash: joi.string().required(),
1111
specVersion: joi.number().required(),
12-
specName: joi.string().valid('kusama', 'polkadot', 'westend', 'statemint', 'statemine', 'node-subtensor').required(),
12+
specName: joi.string().required(),
1313
transactionVersion: joi.number().required(),
1414
chainName: joi.string().required(),
1515
eraPeriod: joi.number().required(),

0 commit comments

Comments
 (0)