Provide chain properties for contract registry (#2714)

This commit is contained in:
Jaco Greeff
2020-10-12 15:53:45 +02:00
committed by GitHub
parent 76c206d60d
commit 1643ec7ddf
3 changed files with 11 additions and 6 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ export default abstract class Base<ApiType extends ApiTypes> {
constructor (api: ApiBase<ApiType>, abi: AnyJson | Abi, decorateMethod: DecorateMethod<ApiType>) {
this.abi = abi instanceof Abi
? abi
: new Abi(abi);
: new Abi(abi, api.registry.getChainProperties());
this.api = api;
this.registry = this.abi.registry;
this._decorateMethod = decorateMethod;