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 {
methods: any;
events: any;
abi: any = [];
abiModel: any | AbiModel;
abiCoder: AbiCoderClass;
options: ContractOptions | any;
@ -38,6 +39,7 @@ export class Contract {
status: ContractStatus = ContractStatus.INITIALISED,
) {
// super();
this.abi = abi;
this.abiCoder = AbiCoder();
this.abiModel = abiMapper(abi, this.abiCoder);
this.options = options;

Loading…
Cancel
Save