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