fix(contract):remove callData from method

dev
neeboo 5 years ago
parent dfdde42131
commit 98d6ccd0c6
  1. 2
      e2e/tsconfig.json
  2. 6
      packages/harmony-contract/src/methods/method.ts

@ -5,7 +5,7 @@
"rootDir": "src",
"declarationDir": "dist"
},
"include": ["src", "../typings/**/*.d.ts"],
"include": ["src", "../typings/**/*.d.ts", "fixtures"],
"references": [
{ "path": "../packages/harmony-account" },
{ "path": "../packages/harmony-crypto" },

@ -22,7 +22,6 @@ export class ContractMethod {
abiItem: AbiItemModel;
callResponse?: any;
callPayload?: any;
callData?: string;
protected transaction: Transaction;
constructor(
@ -39,7 +38,6 @@ export class ContractMethod {
this.transaction = this.createTransaction();
this.callPayload = undefined;
this.callResponse = undefined;
this.callData = undefined;
}
send(params: any): Emitter {
try {
@ -182,13 +180,11 @@ export class ContractMethod {
}
encodeABI() {
const encodedABI = methodEncoder(
return methodEncoder(
this.contract.abiCoder,
this.abiItem,
this.contract.data,
);
this.callData = encodedABI;
return encodedABI;
}
public debug() {

Loading…
Cancel
Save