File tree Expand file tree Collapse file tree
modules/abstract-substrate/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import {
2020 RecoveryTxRequest ,
2121 SignedTransaction ,
2222 TssVerifyAddressOptions ,
23+ TransactionPrebuild ,
2324 TxIntentMismatchRecipientError ,
2425 UnexpectedAddressError ,
2526 verifyEddsaTssWalletAddress ,
@@ -151,7 +152,8 @@ export class SubstrateCoin extends BaseCoin {
151152 // transactions built against a chain spec version newer than the SDK's hardcoded metadata.
152153 // Without this, the factory falls back to its hardcoded material and misidentifies the call
153154 // pallet (e.g. reads a Balances transfer as treasury.disbursement after a chain upgrade).
154- const prebuildMaterial = ( txPrebuild as any ) . coinSpecific ?. material as Material | undefined ;
155+ const prebuildMaterial = ( txPrebuild as TransactionPrebuild & { coinSpecific ?: { material ?: Material } } )
156+ . coinSpecific ?. material ;
155157 if ( prebuildMaterial && typeof factory . material === 'function' ) {
156158 factory . material ( prebuildMaterial ) ;
157159 }
You can’t perform that action at this time.
0 commit comments