Dedupe internal Codec property access (#4941)

* Dedupe internal Codec property access

* Remove getter override

* OptionBool fixes

* Adjust isBasic

* Remove isBasic check

* Re-add isBasic

* Remove static decodeCompact
This commit is contained in:
Jaco
2022-06-17 09:46:57 +03:00
committed by GitHub
parent d0c55a31b8
commit 530909d773
33 changed files with 165 additions and 199 deletions
@@ -167,10 +167,6 @@ abstract class ExtrinsicBase<A extends AnyTuple> extends Base<ExtrinsicVx | Extr
return this.inner.signature.nonce;
}
public override get registry (): Registry {
return super.registry;
}
/**
* @description The actual [[EcdsaSignature]], [[Ed25519Signature]] or [[Sr25519Signature]]
*/
@@ -65,10 +65,6 @@ export class GenericExtrinsicV4 extends Struct implements IExtrinsicImpl {
return this.getT('method');
}
public override get registry (): Registry {
return super.registry;
}
/**
* @description The [[ExtrinsicSignatureV4]]
*/
@@ -89,10 +89,6 @@ export class GenericExtrinsicSignatureV4 extends Struct implements IExtrinsicSig
return this.getT('nonce');
}
public override get registry (): Registry {
return super.registry;
}
/**
* @description The actual [[EcdsaSignature]], [[Ed25519Signature]] or [[Sr25519Signature]]
*/
-4
View File
@@ -189,10 +189,6 @@ export class GenericCall<A extends AnyTuple = AnyTuple> extends Struct implement
return this.registry.findMetaCall(this.callIndex).method;
}
public override get registry (): Registry {
return super.registry;
}
/**
* @description Returns the module containing the method
*/
@@ -73,10 +73,6 @@ export class MetadataVersioned extends Struct {
return this.getT('metadata');
};
public override get registry (): Registry {
return super.registry;
}
/**
* @description Returns the wrapped metadata as a limited calls-only (latest) version
*/