Add transactionVersion to ExtrinsicPayload (#2287)
This commit is contained in:
@@ -102,6 +102,14 @@ export default class ExtrinsicPayload extends Base<ExtrinsicPayloadVx> {
|
||||
return (this._raw as ExtrinsicPayloadV2).tip || this.registry.createType('Compact<Balance>');
|
||||
}
|
||||
|
||||
/**
|
||||
* @description The transaction version as a [[u32]] for this payload
|
||||
*/
|
||||
public get transactionVersion (): u32 {
|
||||
// NOTE only v4+
|
||||
return (this._raw as ExtrinsicPayloadV4).transactionVersion || this.registry.createType('u32');
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Compares the value of the input to see if there is a match
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user