Expose the raw abi

pull/52/head
Sebastian Johnsson 4 years ago
parent 463cfdfb68
commit 14fb03f3f2
  1. 2
      packages/harmony-contract/src/contract.ts

@ -20,6 +20,7 @@ import { ContractStatus } from './utils/status';
export class Contract { export class Contract {
methods: any; methods: any;
events: any; events: any;
abi: any = [];
abiModel: any | AbiModel; abiModel: any | AbiModel;
abiCoder: AbiCoderClass; abiCoder: AbiCoderClass;
options: ContractOptions | any; options: ContractOptions | any;
@ -38,6 +39,7 @@ export class Contract {
status: ContractStatus = ContractStatus.INITIALISED, status: ContractStatus = ContractStatus.INITIALISED,
) { ) {
// super(); // super();
this.abi = abi;
this.abiCoder = AbiCoder(); this.abiCoder = AbiCoder();
this.abiModel = abiMapper(abi, this.abiCoder); this.abiModel = abiMapper(abi, this.abiCoder);
this.options = options; this.options = options;

Loading…
Cancel
Save